io_uring: fail links more in io_submit_sqe()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 18 Feb 2021 18:29:47 +0000 (18:29 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 18 Feb 2021 20:13:18 +0000 (13:13 -0700)
commitde59bc104c24f2e8637464a9e3ebbd8fd4c0f115
treee50d91d584f64151da3a12f2e372fb748986410e
parent1ee43ba8d267b5e6729c45b8756263f69c2978cc
io_uring: fail links more in io_submit_sqe()

Instead of marking a link with REQ_F_FAIL_LINK on an error and delaying
its failing to the caller, do it eagerly right when after getting an
error in io_submit_sqe(). This renders FAIL_LINK checks in
io_queue_link_head() useless and we can skip it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c