Re: [PATCH 15/19] workqueue: kill cpu_populated_map

From: Tejun Heo
Date: Fri Nov 20 2009 - 03:40:53 EST


11/20/2009 01:46 PM, Tejun Heo wrote:
> Single threaded workqueue is scheduled to be reimplemented in the near
> future. Kill cpu_populated_map and make single threaded workqueues
> behave more like multi threaded ones - all cwqs are initialized and
> all workqueues are linked on the workqueues list. This will ease
> further changes.
>
> While at it, make get_cwq() always return the cwq for the specified
> cpu, add target_cwq() for cases where single thread distinction is
> necessary and drop all direct usage of per_cpu_ptr() on wq->cpu_wq.

This one was incorrect in that it may leak a thread when offline is is
brought up for the first time. I'll repost 15-19 along with more prep
patches.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/