Skip to content
Commit 9817ad85 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent deaef31b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment