projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95da846
)
io_uring: io_sq_thread() doesn't need to flush signals
author
Jens Axboe
<axboe@kernel.dk>
Wed, 2 Sep 2020 18:44:20 +0000
(12:44 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 1 Oct 2020 02:32:33 +0000
(20:32 -0600)
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>
fs/io_uring.c
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index b8fdb10c23e3ce8f5f59c20eac0a79be1fa04dfe..26f819ae177d7f95d30f551f679822ad751c51c2 100644
(file)
--- 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);