mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Yunfeng Ye <yeyunfeng@huawei.com>
Cc: jiangshanlai@gmail.com, linux-kernel@vger.kernel.org,
	Shiyuan Hu <hushiyuan@huawei.com>,
	Hewenliang <hewenliang4@huawei.com>
Subject: Re: [PATCH v2] workqueue: Kick a worker based on the actual activation of delayed works
Date: Wed, 25 Nov 2020 07:45:47 -0500	[thread overview]
Message-ID: <X75R+8CRIOyu1IzE@mtj.duckdns.org> (raw)
In-Reply-To: <3837a2ee-f3d5-2732-7d15-7e9616319f05@huawei.com>

On Thu, Nov 19, 2020 at 02:21:25PM +0800, Yunfeng Ye wrote:
> In realtime scenario, We do not want to have interference on the
> isolated cpu cores. but when invoking alloc_workqueue() for percpu wq
> on the housekeeping cpu, it kick a kworker on the isolated cpu.
> 
>   alloc_workqueue
>     pwq_adjust_max_active
>       wake_up_worker
> 
> The comment in pwq_adjust_max_active() said:
>   "Need to kick a worker after thawed or an unbound wq's
>    max_active is bumped"
> 
> So it is unnecessary to kick a kworker for percpu's wq when invoking
> alloc_workqueue(). this patch only kick a worker based on the actual
> activation of delayed works.
> 
> Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>

Applied to wq/for-5.10-fixes w/ minor comment updates.

Thanks.

-- 
tejun

      parent reply	other threads:[~2020-11-25 12:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19  6:21 Yunfeng Ye
2020-11-20  1:45 ` Lai Jiangshan
2020-11-25 12:45 ` Tejun Heo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=X75R+8CRIOyu1IzE@mtj.duckdns.org \
    --to=tj@kernel.org \
    --cc=hewenliang4@huawei.com \
    --cc=hushiyuan@huawei.com \
    --cc=jiangshanlai@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yeyunfeng@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®