• Eric W. Biederman's avatar
    signal: Don't send siginfo to kthreads. · 03515054
    Eric W. Biederman authored
    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: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
    03515054
f_mass_storage.c 92.7 KB