diff options
| author | Shao Mingyin <shao.mingyin@zte.com.cn> | 2026-11-15 00:33:52 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-11-15 08:42:39 -0700 |
| commit | a6f37fb3f5747bb7cca5cd6630dfeea4435022a1 (patch) | |
| tree | c139e7202ecaddfe851dc4e3e529bb8249b99b60 /kernel/debug | |
| parent | 78c4f290e2637f8039e2124a174a24a341b38b1e (diff) | |
ublk: dispatch the next fetch after a batch failure
When a batch fetch fails, for example because its provided-buffer group
is empty, ublk_batch_dispatch() removes the failed fetch and returns.
Pending I/O tags stay in evts_fifo even if another fetch with usable
buffers is already queued. With no new I/O or fetch submission to select
it, that fetch and the outstanding block requests cannot make progress.
Claim the next queued fetch under evts_lock before completing and freeing
the failed one, then schedule its dispatch in the proper task context.
Marking it active before dropping the lock also prevents cancellation
from taking it before its task work is queued.
Fixes: a4d883755399 ("ublk: add UBLK_U_IO_FETCH_IO_CMDS for batch I/O processing")
Cc: stable@vger.kernel.org
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Link: https://patch.msgid.link/20261115003352168cE_tyVxSyZV124AM31htL@zte.com.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
