projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae1c59
)
io_uring: drop exec checks from io_req_task_submit
author
Pavel Begunkov
<asml.silence@gmail.com>
Mon, 9 Aug 2021 12:04:19 +0000
(13:04 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 10 Aug 2021 23:51:41 +0000
(17:51 -0600)
In case of on-exec io_uring cancellations, tasks already wait for all
submitted requests to get completed/cancelled, so we don't need to check
for ->in_execve separately.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/be8707049f10df9d20ca03dc4ca3316239b5e8e0.1628471125.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index 1dc7c145a585dc4b138cf77e22e849f19935083f..97c19e22a28924a8a6a6cbfb7765b80faf4b9ed5 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-2046,7
+2046,7
@@
static void io_req_task_submit(struct io_kiocb *req)
/* ctx stays valid until unlock, even if we drop all ours ctx->refs */
mutex_lock(&ctx->uring_lock);
- if (
!(req->task->flags & PF_EXITING) && !req->task->in_execve
)
+ if (
likely(!(req->task->flags & PF_EXITING))
)
__io_queue_sqe(req);
else
io_req_complete_failed(req, -EFAULT);