Skip to content

Commit 9666d42

Browse files
committed
io_uring: fail links if msg-ring doesn't succeeed
We must always call req_set_fail() if the request is failed, otherwise we won't sever links for dependent chains correctly. Fixes: 4f57f06 ("io_uring: add support for IORING_OP_MSG_RING command") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent c86d18f commit 9666d42

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/io_uring.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4500,6 +4500,8 @@ static int io_msg_ring(struct io_kiocb *req, unsigned int issue_flags)
45004500
ret = 0;
45014501
}
45024502

4503+
if (ret < 0)
4504+
req_set_fail(req);
45034505
__io_req_complete(req, issue_flags, ret, 0);
45044506
return 0;
45054507
}

0 commit comments

Comments
 (0)