summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Xiuwei <yangxiuwei@kylinos.cn>2026-08-21 18:30:46 +0800
committerJens Axboe <axboe@kernel.dk>2026-09-10 20:19:20 -0600
commit8a14be55bdc6d5a25cd7b0ac5d4d884fcc727b49 (patch)
treeac11167eee3c53406f5b18501d6be70920cd1505
parent5067d4ba713961d8ccea1e06cd4c453793f3121e (diff)
downloadlinux-next-8a14be55bdc6d5a25cd7b0ac5d4d884fcc727b49.tar.gz
linux-next-8a14be55bdc6d5a25cd7b0ac5d4d884fcc727b49.zip
ublk: clear force_abort in ublk_queue_reset_io_flags()
Quiesce sets ubq->force_abort for batch I/O. Recovery never clears it, so batch fetch keeps failing with -ENODEV and the device stays QUIESCED. Fixes: a4d883755399 ("ublk: add UBLK_U_IO_FETCH_IO_CMDS for batch I/O processing") Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn> Reviewed-by: Ming Lei <tom.leiming@gmail.com> Link: https://patch.msgid.link/20260821103047.369522-2-yangxiuwei@kylinos.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--drivers/block/ublk_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/ublk_drv.c b/drivers/block/ublk_drv.c
index e5ba07d8d281..44d10cb36bf1 100644
--- a/drivers/block/ublk_drv.c
+++ b/drivers/block/ublk_drv.c
@@ -3030,6 +3030,7 @@ static void ublk_queue_reset_io_flags(struct ublk_queue *ubq)
ubq->canceling = false;
spin_unlock(&ubq->cancel_lock);
ubq->fail_io = false;
+ ubq->force_abort = false;
}
/* device can only be started after all IOs are ready */