Skip to content

Commit aae8dda

Browse files
committed
Merge tag 'wq-for-6.0-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
Pull workqueue fix from Tejun Heo: "Just one patch to improve flush lockdep coverage" * tag 'wq-for-6.0-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: workqueue: don't skip lockdep work dependency in cancel_work_sync()
2 parents 3db6122 + c0feea5 commit aae8dda

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kernel/workqueue.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,10 +3066,8 @@ static bool __flush_work(struct work_struct *work, bool from_cancel)
30663066
if (WARN_ON(!work->func))
30673067
return false;
30683068

3069-
if (!from_cancel) {
3070-
lock_map_acquire(&work->lockdep_map);
3071-
lock_map_release(&work->lockdep_map);
3072-
}
3069+
lock_map_acquire(&work->lockdep_map);
3070+
lock_map_release(&work->lockdep_map);
30733071

30743072
if (start_flush_work(work, &barr, from_cancel)) {
30753073
wait_for_completion(&barr.done);

0 commit comments

Comments
 (0)