diff options
author | Petr Mladek <pmladek@suse.com> | 2021-06-24 18:39:45 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-11 12:46:41 +0200 |
commit | 392cfdd660491857137c35cba7496fb7446afe4f (patch) | |
tree | c8f54945fd3a98fd626dbe58fa99db7c7a7e6632 /drivers/md/dm-verity-fec.c | |
parent | 22226752e45934480f63cc8e43abb13b7e59f4fb (diff) | |
download | linux-stable-392cfdd660491857137c35cba7496fb7446afe4f.tar.gz linux-stable-392cfdd660491857137c35cba7496fb7446afe4f.tar.bz2 linux-stable-392cfdd660491857137c35cba7496fb7446afe4f.zip |
kthread_worker: split code for canceling the delayed work timer
commit 34b3d5344719d14fd2185b2d9459b3abcb8cf9d8 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/dm-verity-fec.c')
0 files changed, 0 insertions, 0 deletions