Re: [PATCH 4/5] workqueue: Automatically mark CPU-hogging work items CPU_INTENSIVE
From: Tejun Heo
Date: Wed Apr 19 2023 - 11:45:39 EST
Hello,
On Wed, Apr 19, 2023 at 09:45:52AM +0800, Hillf Danton wrote:
...
> Need to wake up another worker in case the current one with
> WORKER_CPU_INTENSIVE set is going to sleep with works left behind.
Please see below.
> > +
> > + pool->nr_running--;
> > }
> >
> > - pool->nr_running--;
> > if (need_more_worker(pool))
> > wake_up_worker(pool);
That's what this block is for.
Thanks.
--
tejun