On Thu, 2018-10-25 at 17:31 +0200, Johannes Berg wrote: > On Thu, 2018-10-25 at 15:05 +0000, Bart Van Assche wrote: > > As documented in a comment in start_flush_work(), calling flush_work() > > from a multi-threaded workqueue is safe if that workqueue is not > > equipped with a rescuer. Avoid that flush_work() calls from inside a > > work item executing on such a queue trigger a lockdep complaint.
So actually, come to think of it, certainly this will cause a false negative in this case? mutex_lock(A); flush_work(W); worker_W_function() { mutex_lock(A); } right? johannes