aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2/background.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2015-11-06 19:32:22 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-06 20:50:42 -0500
commitbe0e6f290f78b84a3b21b8c8c46819c4514fe632 (patch)
treeccf0623cfbe7b0486f08b100032465d773dcb7dd /fs/jffs2/background.c
parent2e01fabe67ccaff1d59bda01e60a61f5fb0aa7b6 (diff)
signal: turn dequeue_signal_lock() into kernel_dequeue_signal()
1. Rename dequeue_signal_lock() to kernel_dequeue_signal(). This matches another "for kthreads only" kernel_sigaction() helper. 2. Remove the "tsk" and "mask" arguments, they are always current and current->blocked. And it is simply wrong if tsk != current. 3. We could also remove the 3rd "siginfo_t *info" arg but it looks potentially useful. However we can simplify the callers if we change kernel_dequeue_signal() to accept info => NULL. 4. Remove _irqsave, it is never called from atomic context. 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 'fs/jffs2/background.c')
-rw-r--r--fs/jffs2/background.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c
index bb9cebc9ca8a..f3145fd86d86 100644
--- a/fs/jffs2/background.c
+++ b/fs/jffs2/background.c
@@ -121,13 +121,12 @@ static int jffs2_garbage_collect_thread(void *_c)
121 /* Put_super will send a SIGKILL and then wait on the sem. 121 /* Put_super will send a SIGKILL and then wait on the sem.
122 */ 122 */
123 while (signal_pending(current) || freezing(current)) { 123 while (signal_pending(current) || freezing(current)) {
124 siginfo_t info;
125 unsigned long signr; 124 unsigned long signr;
126 125
127 if (try_to_freeze()) 126 if (try_to_freeze())
128 goto again; 127 goto again;
129 128
130 signr = dequeue_signal_lock(current, &current->blocked, &info); 129 signr = kernel_dequeue_signal(NULL);
131 130
132 switch(signr) { 131 switch(signr) {
133 case SIGSTOP: 132 case SIGSTOP: