io_uring: fail links if msg-ring doesn't succeeed
authorJens Axboe <axboe@kernel.dk>
Tue, 29 Mar 2022 16:50:03 +0000 (10:50 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Mar 2022 16:51:08 +0000 (10:51 -0600)
commit9666d4206e9a14ff612e374b6b572b3efc797d46
tree64660f26baef0bdfd3dd38e500bb7c3f2969ce1d
parentc86d18f4aa93e0e66cda0e55827cd03eea6bc5f8
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: 4f57f06ce218 ("io_uring: add support for IORING_OP_MSG_RING command")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c