Re: [PATCH -tip V3 0/8] workqueue: break affinity initiatively

From: Peter Zijlstra
Date: Tue Jan 12 2021 - 09:55:09 EST


On Tue, Jan 12, 2021 at 12:33:03PM +0800, Lai Jiangshan wrote:
> > Well yes, but afaict the workqueue stuff hasn't been settled yet, and
> > the rcutorture patch Paul did was just plain racy and who knows what
> > other daft kthread users are out there. That and we're at -rc3.
>
> I just send the V4 patchset for the workqueue. Please take a look.

Yes, I've seen it. But I think this approach is smaller and simpler.

By distinguishing between geniuine per-cpu kthreads and kthreads that
happen to have a single CPU affinity, things become much simpler and
robust.