[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 5 May 2022 07:32:37 -1000
From: Tejun Heo <tj@...nel.org>
To: Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>
Cc: LKML <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Joe Perches <joe@...ches.com>,
Andy Whitcroft <apw@...onical.com>,
Dwaipayan Ray <dwaipayanray1@...il.com>,
Lukas Bulwahn <lukas.bulwahn@...il.com>
Subject: Re: [PATCH] checkpatch: warn about flushing system-wide workqueues
Hello,
On Thu, May 05, 2022 at 10:42:19PM +0900, Tetsuo Handa wrote:
> Tejun, can we use this approach? If yes, when to apply?
>
> If we can include this patch into 5.18, can be applied as-is.
> If we can include this patch into 5.19, can be applied with checks for
> system_{long,unbound,highpri}_wq added because all flush_workqueue() users
> on system_*_wq are gone in next-20220505.
>
> Now that all flush_workqueue() users on system_*_wq are gone in next-20220505,
> next step is to remove all flush_scheduled_work() users. Therefore, instead of
> using /\bflush_workqueue\s*\(\s*system(_\w*)?_wq\s*\)/ in scripts/checkpatch.pl ,
> I think we can ask BUILD_BUG_ON() for blocking new system_*_wq users, and ask
> scripts/checkpatch.pl for blocking new system_wq users.
Given that we'll need runtime check anyway, why not resurrect the original
runtime warning but exempt flush_schedule_work() if that's the only thing
remaining right now (using a special flag or whatever)? If we're sure that
we aren't triggering it spuriously, we can ask Andrew to take the warning
patch into -mm so that it floats on top of everything else and gets pulled
into the trunk during the coming merge window.
Thanks.
--
tejun
Powered by blists - more mailing lists