Skip to content

ublk: don't issue uring_cmd from fallback task work#788

Open
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1088503=>linus-master
Open

ublk: don't issue uring_cmd from fallback task work#788
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1088503=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented May 1, 2026

Pull request for series with
subject: ublk: don't issue uring_cmd from fallback task work
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1088503

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 1, 2026

Upstream branch: e75a43c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088503
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 3, 2026

Upstream branch: 66edb90
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088503
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1088503=>linus-master branch from f50e16c to 059ea04 Compare May 3, 2026 02:36
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 25a041f to 6f75bd1 Compare May 4, 2026 10:57
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 4, 2026

Upstream branch: 6d35786
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088503
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1088503=>linus-master branch from 059ea04 to 739334e Compare May 4, 2026 11:26
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 6f75bd1 to 1f0d33a Compare May 5, 2026 15:39
When ublk_ch_uring_cmd_cb() runs as fallback task work (e.g., because
the submitting task is exiting), the command should not be issued as
current is a kworker, not the daemon task. This can cause io->task
to capture the wrong task in __ublk_fetch(), leading to a task
mismatch warning in ublk_uring_cmd_cancel_fn().

Check tw.cancel and return -ECANCELED instead of issuing the command
from fallback context.

Fixes: 3421c7f ("ublk: make sure io cmd handled in submitter task context")
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented May 5, 2026

Upstream branch: 6d35786
series: https://patchwork.kernel.org/project/linux-block/list/?series=1088503
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1088503=>linus-master branch from 739334e to 62132c1 Compare May 5, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant