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(-)