summaryrefslogtreecommitdiffstats
path: root/fs/io-wq.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-03-22 09:39:12 -0600
committerJens Axboe <axboe@kernel.dk>2021-04-11 17:42:00 -0600
commit66ae0d1e2d9fe6ec70e73fcfdcf4b390e271c1ac (patch)
tree57eeb40323814b8d43230e3c27e9dc60256dd0a0 /fs/io-wq.h
parentb69de288e913030082bed3a324ddc58be6c1e983 (diff)
downloadlinux-66ae0d1e2d9fe6ec70e73fcfdcf4b390e271c1ac.tar.bz2
kernel: allow fork with TIF_NOTIFY_SIGNAL pending
fork() fails if signal_pending() is true, but there are two conditions that can lead to that: 1) An actual signal is pending. We want fork to fail for that one, like we always have. 2) TIF_NOTIFY_SIGNAL is pending, because the task has pending task_work. We don't need to make it fail for that case. Allow fork() to proceed if just task_work is pending, by changing the signal_pending() check to task_sigpending(). Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
0 files changed, 0 insertions, 0 deletions