Skip to content

kthread_worker: Fix race between kthread_mod_delayed_work()

Petr Mladek stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kthread_worker: split code for canceling the delayed work timerkernel/kthread.c+29 -170 replies
2/2kthread: prevent deadlock when kthread_mod_delayed_work() races with kthread_cancel_delayed_work_sync()kernel/kthread.c+24 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] kthread_worker: Fix race between kthread_mod_delayed_work()

This is backport of the series for the following stable trees:

+ 4.9
+ 4.14
+ 4.19

The orignal series did not apply because of a conflict with the commit ("kthread: Convert worker lock to raw spinlock").

Petr Mladek (2):
kthread_worker: split code for canceling the delayed work timer
kthread: prevent deadlock when kthread_mod_delayed_work() races with
kthread_cancel_delayed_work_sync()

 kernel/kthread.c | 77 ++++++++++++++++++++++++++++++++----------------
 1 file changed, 51 insertions(+), 26 deletions(-)
Signature · 1 line
2.26.2