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

io_uring/rw: always clear ->bytes_done on io_async_rw setup



A previous commit mistakenly moved the clearing of the in-progress byte
count into the section that's dependent on having a cached iovec or not,
but it should be cleared for any IO. If not, then extra bytes may be
added at IO completion time, causing potentially weird behavior like
over-reporting the amount of IO done.

Fixes: d7f11616 ("io_uring/rw: Allocate async data through helper")
Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202412271132.a09c3500-lkp@intel.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 21adbcaa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment