Messages in this thread | | | Date | Tue, 28 Aug 2012 00:04:07 -0700 | Subject | Re: [PATCH 6/7] workqueue: init 0 for idle_rebind.cnt | From | Tejun Heo <> |
| |
Hello,
On Mon, Aug 27, 2012 at 9:36 PM, Lai Jiangshan <eag0628@gmail.com> wrote: >> But then the completion could be triggered prematurely, no? > > No, the idle_worker_rebind() can't be called until rebind_workers() > finish counting and release the gcwq->lock.
I see but I still wanna keep it counting from 1. That's an established pattern and is more robust. I really don't see what we're gaining by doing it differently.
Thanks.
-- tejun
| |