signal: remove jffs2_garbage_collect_thread()->allow_signal(SIGCONT)
authorOleg Nesterov <oleg@redhat.com>
Sat, 7 Nov 2015 00:32:28 +0000 (16:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
jffs2_garbage_collect_thread() does allow_signal(SIGCONT) for no reason,
SIGCONT will wake a stopped task up even if it is ignored.

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>
fs/jffs2/background.c

index 53cc7350af33083b5586d52566865f2c6e0ff87e..e5c1783ab64a050a7460bfe80b2afc966f0c8902 100644 (file)
@@ -80,7 +80,6 @@ static int jffs2_garbage_collect_thread(void *_c)
        siginitset(&hupmask, sigmask(SIGHUP));
        allow_signal(SIGKILL);
        allow_signal(SIGSTOP);
-       allow_signal(SIGCONT);
        allow_signal(SIGHUP);
 
        c->gc_task = current;