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:
aacf2f9
)
io_uring: fail links when poll fails
author
Pavel Begunkov
<asml.silence@gmail.com>
Tue, 21 Jun 2022 23:00:35 +0000
(
00:00
+0100)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 21 Jun 2022 23:24:37 +0000
(17:24 -0600)
Don't forget to cancel all linked requests of poll request when
__io_arm_poll_handler() failed.
Fixes: aa43477b04025 ("io_uring: poll rework")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/a78aad962460f9fdfe4aa4c0b62425c88f9415bc.1655852245.git.asml.silence@gmail.com
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 dffa85d4dc7a0b1e6331867194b5af914486f73b..d5ea3c6167b55ffb4061e7dd0a8205ce467f4e10 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-7405,6
+7405,8
@@
static int io_poll_add(struct io_kiocb *req, unsigned int issue_flags)
ipt.pt._qproc = io_poll_queue_proc;
ret = __io_arm_poll_handler(req, &req->poll, &ipt, poll->events);
+ if (!ret && ipt.error)
+ req_set_fail(req);
ret = ret ?: ipt.error;
if (ret)
__io_req_complete(req, issue_flags, ret, 0);