]> git.karo-electronics.de Git - karo-tx-linux.git/commit
signal: turn dequeue_signal_lock() into kernel_dequeue_signal()
authorOleg Nesterov <oleg@redhat.com>
Wed, 21 Oct 2015 22:03:58 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:58 +0000 (09:03 +1100)
commitffcb8dc55a9720c6eba617fddafb09ced24166f3
treeb9c90f37d8695e76cd009302652ab3e663663abf
parent42aaa0cc9e4142f108001da3bb8cad701f533423
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>
drivers/block/nbd.c
drivers/usb/gadget/function/f_mass_storage.c
fs/jffs2/background.c
include/linux/sched.h