io_uring/net: remove dependency on REQ_F_PARTIAL_IO for sr->done_io
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Mar 2024 19:43:22 +0000 (12:43 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Mar 2024 14:56:21 +0000 (07:56 -0700)
commit9817ad85899fb695f875610fb743cb18cf087582
tree3df6fa502f1be6d4a8291c8fdd31c93164eb5709
parentdeaef31bc1ec7966698a427da8c161930830e1cf
io_uring/net: remove dependency on REQ_F_PARTIAL_IO for sr->done_io

Ensure that prep handlers always initialize sr->done_io before any
potential failure conditions, and with that, we now it's always been
set even for the failure case.

With that, we don't need to use the REQ_F_PARTIAL_IO flag to gate on that.
Additionally, we should not overwrite req->cqe.res unless sr->done_io is
actually positive.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/net.c