diff options
author | Oleg Nesterov <oleg@redhat.com> | 2015-11-07 01:32:25 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-07 02:50:42 +0100 |
commit | 9a13049e83f346cb1cbd60c64e520a73c396af16 (patch) | |
tree | 11a2ac2ac28dbfa477d5b4f1e14a2173b4867a8f /include/keys | |
parent | signal: turn dequeue_signal_lock() into kernel_dequeue_signal() (diff) | |
download | linux-9a13049e83f346cb1cbd60c64e520a73c396af16.tar.xz linux-9a13049e83f346cb1cbd60c64e520a73c396af16.zip |
signal: introduce kernel_signal_stop() to fix jffs2_garbage_collect_thread()
jffs2_garbage_collect_thread() can race with SIGCONT and sleep in
TASK_STOPPED state after it was already sent. Add the new helper,
kernel_signal_stop(), which does this correctly.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/keys')
0 files changed, 0 insertions, 0 deletions