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
Kconfig -rw-r--r-- 1.5 KB
Makefile -rw-r--r-- 372 bytes
acl.c -rw-r--r-- 5.6 KB
addr.c -rw-r--r-- 53.2 KB
cache.c -rw-r--r-- 5.6 KB
cache.h -rw-r--r-- 2.8 KB
caps.c -rw-r--r-- 121.8 KB
ceph_frag.c -rw-r--r-- 401 bytes
debugfs.c -rw-r--r-- 11.8 KB
dir.c -rw-r--r-- 51.5 KB
export.c -rw-r--r-- 13.4 KB
file.c -rw-r--r-- 64.7 KB
inode.c -rw-r--r-- 66.5 KB
io.c -rw-r--r-- 4.5 KB
io.h -rw-r--r-- 387 bytes
ioctl.c -rw-r--r-- 7.5 KB
ioctl.h -rw-r--r-- 3.6 KB
locks.c -rw-r--r-- 12.9 KB
mds_client.c -rw-r--r-- 136.5 KB
mds_client.h -rw-r--r-- 17.3 KB
mdsmap.c -rw-r--r-- 10.2 KB
metric.c -rw-r--r-- 9.6 KB
metric.h -rw-r--r-- 5.0 KB
quota.c -rw-r--r-- 13.9 KB
snap.c -rw-r--r-- 32.0 KB
strings.c -rw-r--r-- 4.2 KB
super.c -rw-r--r-- 32.6 KB
super.h -rw-r--r-- 40.3 KB
util.c -rw-r--r-- 2.4 KB
xattr.c -rw-r--r-- 34.9 KB

back to top