Files
linux/kernel
Jens Axboe ec6f3fc90a UPSTREAM: signal: Add task_sigpending() helper
[ Upstream commit 5c251e9dc0 ]

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.

Change-Id: I0d8572e173cc4536673da1682c9537db11f68167
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 52cfde6bbf)
Bug: 268174392
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2023-02-08 08:27:37 +00:00
..
2022-05-15 18:02:37 +02:00
2021-09-08 09:07:16 +02:00
2020-08-12 10:58:02 -07:00
2021-09-03 10:59:15 +02:00
2020-11-14 11:26:04 -08:00
2022-05-15 18:02:37 +02:00
2021-08-18 09:34:44 +02:00
2022-06-24 11:54:12 +02:00
2021-09-03 10:59:15 +02:00