diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-09-02 12:44:20 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-30 20:32:33 -0600 |
commit | e35afcf91230238dc27f98d1cd7cb787474b28cb (patch) | |
tree | aa4ce74b3faf888e107ec561960a306a06353762 /fs/io_uring.c | |
parent | 95da84659226d75698a1ab958be0af21d9cc2a9c (diff) |
io_uring: io_sq_thread() doesn't need to flush signals
We're not handling signals by default in kernel threads, and we never
use TWA_SIGNAL for the SQPOLL thread internally. Hence we can never
have a signal pending, and we don't need to check for it (nor flush it).
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index b8fdb10c23e3..26f819ae177d 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -6709,8 +6709,6 @@ static int io_sq_thread(void *data) io_ring_clear_wakeup_flag(ctx); continue; } - if (signal_pending(current)) - flush_signals(current); schedule(); finish_wait(&ctx->sqo_wait, &wait); |