Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp594994pxb; Wed, 27 Jan 2021 16:10:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAF1iNiRrssFvL7GHIuxGAbhcZiCYAoxQrjCNup3PdB25ESJ7fMMZ+Jn8XcOocM++fUr00 X-Received: by 2002:a05:6402:110b:: with SMTP id u11mr11706302edv.57.1611792658099; Wed, 27 Jan 2021 16:10:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611792658; cv=none; d=google.com; s=arc-20160816; b=dJfK0ljll5PeovGhMIYCk4KJNez6IZ/1y0GBYUh51RQGrCxttAD6BMoDT1uwsGx0EG HHmG5XetGgOOBtQrBZIlKAH3aYNE/7t+vGIbQjULEGvrPuty2T/rJiNA8VUlSgjKWmvp 1Cv8WO/JDz4Z6UCVMc/TwOkrmQMX+l2jzOGhoC4uP9bJ0wWDZO5ooT10a0GLtixZ4zOl M0OQvTDC+2bh7HbVSk/0s0GJjpR2zYsud/+ZqydhqyATErjU7R0JHj4IP9lzkrGPLlA9 nJvNs6Z+1SifHTo4nv9CEWowzECI5+UDzedVkYUjUbQAoNQt5DuDDapm+ZORSZHJRnoN 1Enw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=AbNQtcm/JkhzFHAnum+Be39q9Ie6ZgOQAYSSeu9fom8=; b=pSOYU3O1l9IX+7FdwIHF0YQJz3bBDNORQZ4fpPapm6MOUkB2IQF5hVep9FbScPENmG xqnXRhaY+tjwVDX/RvMJ/2yi1WM1W5eb7DxM3jZ9dv6ejvV9QyPK6FuVhDr2s0871CoA p4GF3WmEHhDmWMgnKJXGq0yRhEO42GMO4BFykyg0Wg2aIUJjddfxJfh5i+v1x5L17ILz FebJ1M2lG7iSCfCNaxmM6289CLHfzuoVQxC0ZL+KEvY3QySklIp+pggsmH0hZYtaqyD9 iEEVDWSrqBNH1UnokZZCMf41ATZF9OjV+RalUeoNbhdzZOBxRr6CitEtqwEZlIK9TYzS JNfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si1505909ejb.482.2021.01.27.16.10.34; Wed, 27 Jan 2021 16:10:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233847AbhA0SRO (ORCPT + 99 others); Wed, 27 Jan 2021 13:17:14 -0500 Received: from mail-ot1-f51.google.com ([209.85.210.51]:39896 "EHLO mail-ot1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbhA0SRN (ORCPT ); Wed, 27 Jan 2021 13:17:13 -0500 Received: by mail-ot1-f51.google.com with SMTP id i30so2612790ota.6; Wed, 27 Jan 2021 10:16:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AbNQtcm/JkhzFHAnum+Be39q9Ie6ZgOQAYSSeu9fom8=; b=pXQFTxUH4/SXqpTdGaUt6JfV0ZnBy+G3HDHk2NmdNwDxinbaSqQqO4y1FTekTdAEoh 0E++PerIyh9EBjDO9AtWitMhdvQh22cjAcSup9ujColcwYn5CZ+KhDCt4FVVezE7xQLL KL/9d8ZEM1UTnYvxL5CWMu+ctkPttNsY/TZk67efvLFgS7XNILN0Te8VPwwAH4sg054s 8VI+YoYN/EpbEPEWoQFa12F0kGkmOnXFbH/9548C63P2SoFC5uDdQwWdACpZZYQHOg5r p9Ta0YBtLv1P2+DQybP9UPRXW1Vgm6W8VRzKQWOjwb2WsfxuZfHos2OZwWa+lwcXJCFD l6jg== X-Gm-Message-State: AOAM531mdbTJtElZ41Wjsi7MiM0j7aojGWQgcWwVDqP5csADcEdTso60 yH6Z9KVKI4nwys6W9FbWZYMtl54Di/FNRRNMakw= X-Received: by 2002:a05:6830:2313:: with SMTP id u19mr8783140ote.321.1611771392243; Wed, 27 Jan 2021 10:16:32 -0800 (PST) MIME-Version: 1.0 References: <20210125041828.20965-1-qiang.zhang@windriver.com> In-Reply-To: <20210125041828.20965-1-qiang.zhang@windriver.com> From: "Rafael J. Wysocki" Date: Wed, 27 Jan 2021 19:16:21 +0100 Message-ID: Subject: Re: [PATCH] PM: remove PF_WQ_WORKER mask To: qiang.zhang@windriver.com Cc: Rafael Wysocki , Linux PM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 5:01 AM wrote: > > From: Zqiang > > Due to kworker also is kernel thread, it's already included > PF_KTHREAD mask, so remove PF_WQ_WORKER mask. So you are saying that all threads having PF_WQ_WORKER set must also have PF_KTHREAD set, right? That sounds correct, so I'm going to rewrite the changelog and apply the patch as 5.12 material, thanks! > Signed-off-by: Zqiang > --- > kernel/power/process.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/power/process.c b/kernel/power/process.c > index 45b054b7b5ec..50cc63534486 100644 > --- a/kernel/power/process.c > +++ b/kernel/power/process.c > @@ -235,7 +235,7 @@ void thaw_kernel_threads(void) > > read_lock(&tasklist_lock); > for_each_process_thread(g, p) { > - if (p->flags & (PF_KTHREAD | PF_WQ_WORKER)) > + if (p->flags & PF_KTHREAD) > __thaw_task(p); > } > read_unlock(&tasklist_lock); > -- > 2.17.1 >