]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/rw: don't gate retry on completion context
authorJens Axboe <axboe@kernel.dk>
Tue, 7 Jan 2025 18:07:47 +0000 (11:07 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 10 Jan 2025 14:51:48 +0000 (07:51 -0700)
commitb08e02045002e0412441d5243b0ee1a9bfc3952b
tree7686241ef8a694052995ea57785d4af054fa3cc3
parentd803d123948feffbd992213e144df224097f82b0
io_uring/rw: don't gate retry on completion context

nvme multipath reports that they see spurious -EAGAIN bubbling back to
userspace, which is caused by how they handle retries internally through
a kworker. However, any data that needs preserving or importing for
a read/write request has always been done so at prep time, and we can
sanely skip this check.

Reported-by: "Haeuptle, Michael" <michael.haeuptle@hpe.com>
Link: https://lore.kernel.org/io-uring/DS7PR84MB31105C2C63CFA47BE8CBD6EE95102@DS7PR84MB3110.NAMPRD84.PROD.OUTLOOK.COM/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rw.c