Revision 34b3d5344719d14fd2185b2d9459b3abcb8cf9d8 authored by Petr Mladek on 25 June 2021, 01:39:45 UTC, committed by Linus Torvalds on 25 June 2021, 02:40:54 UTC
Patch series "kthread_worker: Fix race between kthread_mod_delayed_work()
and kthread_cancel_delayed_work_sync()".

This patchset fixes the race between kthread_mod_delayed_work() and
kthread_cancel_delayed_work_sync() including proper return value
handling.

This patch (of 2):

Simple code refactoring as a preparation step for fixing a race between
kthread_mod_delayed_work() and kthread_cancel_delayed_work_sync().

It does not modify the existing behavior.

Link: https://lkml.kernel.org/r/20210610133051.15337-2-pmladek@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Cc: <jenhaochen@google.com>
Cc: Martin Liu <liumartin@google.com>
Cc: Minchan Kim <minchan@google.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 7ca3027
History
File Mode Size
Makefile -rw-r--r-- 381 bytes
clnt4xdr.c -rw-r--r-- 12.9 KB
clntlock.c -rw-r--r-- 7.5 KB
clntproc.c -rw-r--r-- 21.7 KB
clntxdr.c -rw-r--r-- 13.2 KB
host.c -rw-r--r-- 17.5 KB
mon.c -rw-r--r-- 14.4 KB
netns.h -rw-r--r-- 395 bytes
procfs.c -rw-r--r-- 1.9 KB
procfs.h -rw-r--r-- 474 bytes
svc.c -rw-r--r-- 19.4 KB
svc4proc.c -rw-r--r-- 18.7 KB
svclock.c -rw-r--r-- 27.0 KB
svcproc.c -rw-r--r-- 19.5 KB
svcshare.c -rw-r--r-- 2.4 KB
svcsubs.c -rw-r--r-- 10.4 KB
xdr.c -rw-r--r-- 7.2 KB
xdr4.c -rw-r--r-- 7.5 KB

back to top