commit | b772434be0891ed1081a08ae7cfd4666728f8e82 | [log] [tgz] |
---|---|---|
author | Oleg Nesterov <[email protected]> | Tue Jul 16 16:29:53 2019 -0700 |
committer | Linus Torvalds <[email protected]> | Tue Jul 16 19:23:24 2019 -0700 |
tree | 267c8bf551cae079b00a40bd5aee9c478246e1c4 | |
parent | e2d9018e81ba9357d3bb8bddc0ee58d460d092fe [diff] |
signal: simplify set_user_sigmask/restore_user_sigmask task->saved_sigmask and ->restore_sigmask are only used in the ret-from- syscall paths. This means that set_user_sigmask() can save ->blocked in ->saved_sigmask and do set_restore_sigmask() to indicate that ->blocked was modified. This way the callers do not need 2 sigset_t's passed to set/restore and restore_user_sigmask() renamed to restore_saved_sigmask_unless() turns into the trivial helper which just calls restore_saved_sigmask(). Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Oleg Nesterov <[email protected]> Cc: Deepa Dinamani <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Eric Wong <[email protected]> Cc: Jason Baron <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Al Viro <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: David Laight <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>