]> asedeno.scripts.mit.edu Git - linux.git/commit
signal: Don't send siginfo to kthreads.
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 20 Jul 2018 10:31:53 +0000 (05:31 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 11 Sep 2018 19:19:22 +0000 (21:19 +0200)
commit035150540545f62bada95860ba00fe1e0cd62f63
tree5831b9b102dd240cf74654c978118c4d1d432f2c
parent961366a01904d460066d65a609c3c2e3051c7903
signal: Don't send siginfo to kthreads.

Today kernel threads never dequeue siginfo so it is pointless to
enqueue siginfo for them.  The usb gadget mass storage driver goes
one farther and uses SEND_SIG_FORCED to guarantee that no siginfo is
even enqueued.

Generalize the optimization of the usb mass storage driver and never
perform an unnecessary allocation when delivering signals to kthreads.

Switch the mass storage driver from sending signals with
SEND_SIG_FORCED to SEND_SIG_PRIV.  As using SEND_SIG_FORCED is now
unnecessary.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
drivers/usb/gadget/function/f_mass_storage.c
kernel/signal.c