diff options
author | Ming Lei <ming.lei@redhat.com> | 2025-04-09 09:14:42 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-04-09 07:44:49 -0600 |
commit | 18461f2a02be04f8bbbe3b37fecfc702e3fa5bc2 (patch) | |
tree | 89a32e8a1cb62c10f7b0c087316753ad89422ae9 /rust/helpers | |
parent | 6ee6bd5d4fce502a5b5a2ea805e9ff16e6aa890f (diff) | |
download | linux-18461f2a02be04f8bbbe3b37fecfc702e3fa5bc2.tar.gz linux-18461f2a02be04f8bbbe3b37fecfc702e3fa5bc2.tar.bz2 linux-18461f2a02be04f8bbbe3b37fecfc702e3fa5bc2.zip |
ublk: don't fail request for recovery & reissue in case of ubq->canceling
ubq->canceling is set with request queue quiesced when io_uring context is
exiting. USER_RECOVERY or !RECOVERY_FAIL_IO requires request to be re-queued
and re-dispatch after device is recovered.
However commit d796cea7b9f3 ("ublk: implement ->queue_rqs()") still may fail
any request in case of ubq->canceling, this way breaks USER_RECOVERY or
!RECOVERY_FAIL_IO.
Fix it by calling __ublk_abort_rq() in case of ubq->canceling.
Reviewed-by: Uday Shankar <ushankar@purestorage.com>
Reported-by: Uday Shankar <ushankar@purestorage.com>
Closes: https://lore.kernel.org/linux-block/Z%2FQkkTRHfRxtN%2FmB@dev-ushankar.dev.purestorage.com/
Fixes: d796cea7b9f3 ("ublk: implement ->queue_rqs()")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250409011444.2142010-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions