diff options
| author | Ming Lei <[email protected]> | 2025-04-09 01:14:42 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-04-09 13:44:49 +0000 |
| commit | 18461f2a02be04f8bbbe3b37fecfc702e3fa5bc2 (patch) | |
| tree | 89a32e8a1cb62c10f7b0c087316753ad89422ae9 /net/core/lock_debug.c | |
| parent | ublk: fix handling recovery & reissue in ublk_abort_queue() (diff) | |
| download | kernel-18461f2a02be04f8bbbe3b37fecfc702e3fa5bc2.tar.gz kernel-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 <[email protected]>
Reported-by: Uday Shankar <[email protected]>
Closes: https://lore.kernel.org/linux-block/Z%2FQkkTRHfRxtN%[email protected]/
Fixes: d796cea7b9f3 ("ublk: implement ->queue_rqs()")
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/core/lock_debug.c')
0 files changed, 0 insertions, 0 deletions
