io_uring: defer all io_req_complete_failed
authorDylan Yudaken <dylany@meta.com>
Thu, 24 Nov 2022 09:35:53 +0000 (01:35 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Nov 2022 13:10:04 +0000 (06:10 -0700)
commit973fc83f3a94bdffcacf482641db38f57c7c8609
tree8c186021f141d1325b128c354166f441578e4d63
parentc06c6c5d276707e04cedbcc55625e984922118aa
io_uring: defer all io_req_complete_failed

All failures happen under lock now, and can be deferred. To be consistent
when the failure has happened after some multishot cqe has been
deferred (and keep ordering), always defer failures.

To make this obvious at the caller (and to help prevent a future bug)
rename io_req_complete_failed to io_req_defer_failed.

Signed-off-by: Dylan Yudaken <dylany@meta.com>
Link: https://lore.kernel.org/r/20221124093559.3780686-4-dylany@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h
io_uring/poll.c