io_uring: simplify reissue in kiocb_done
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 23 Nov 2021 00:07:46 +0000 (00:07 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 23 Nov 2021 19:24:20 +0000 (12:24 -0700)
commit06bdea20c1076471f7ab7d3ad7f35cbcbd59a8e3
tree1109cd687347c4a025d13fae994ea41d6a599326
parent136057256686de39cc3a07c2e39ef6bc43003ff6
io_uring: simplify reissue in kiocb_done

Simplify failed resubmission prep in kiocb_done(), it's a bit ugly with
conditional logic and hand handling cflags / select buffers. Instead,
punt to tw and use io_req_task_complete() already handling all the
cases.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/667c33484b05b612e9420e1b1d5f4dc46d0ee9ce.1637524285.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c