signal: Add task_sigpending() helper
This is in preparation for maintaining signal_pending() as the decider of whether or not a schedule() loop should be broken, or continue sleeping. This is different than the core signal use cases, which really need to know whether an actual signal is pending or not. task_sigpending() returns non-zero if TIF_SIGPENDING is set. Only core kernel use cases should care about the distinction between the two, make sure those use the task_sigpending() helper. Signed-off-by:Jens Axboe <axboe@kernel.dk> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de> Reviewed-by:
Thomas Gleixner <tglx@linutronix.de> Reviewed-by:
Oleg Nesterov <oleg@redhat.com> Link: https://lore.kernel.org/r/20201026203230.386348-2-axboe@kernel.dk
Loading
-
mentioned in commit 83bf6986
-
mentioned in commit c99d4eb3
-
mentioned in commit 1bc32d9e
-
mentioned in commit b50bffe6
-
mentioned in commit e116798a
-
mentioned in commit e0463c61
-
mentioned in commit edff6ae1
-
mentioned in commit 5524636f
-
mentioned in commit 27387674
-
mentioned in commit e8e02c1d
-
mentioned in commit 580f6e80
Please sign in to comment