Skip to content

ublk: Backport to 6.14-stable: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd

Jared Holzman stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ublk: add helper of ublk_need_map_io()drivers/block/ublk_drv.c+9 -40 replies
2/7ublk: properly serialize all FETCH_REQsdrivers/block/ublk_drv.c+49 -280 replies
3/7ublk: move device reset into ublk_ch_release()drivers/block/ublk_drv.c+72 -490 replies
4/7ublk: improve detection and handling of ublk server exitdrivers/block/ublk_drv.c+124 -990 replies
5/7ublk: remove __ublk_quiesce_dev()drivers/block/ublk_drv.c+2 -170 replies
6/7ublk: simplify aborting ublk requestdrivers/block/ublk_drv.c+20 -620 replies
7/7ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmddrivers/block/ublk_drv.c+21 -60 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchCaleb Sander MateosUday ShankarJared Holzman
1/7R-b
2/7
3/7
4/7
5/7R-b
6/7R-b
7/7T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/7] ublk: Backport to 6.14-stable: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd

This patchset backports a series of ublk fixes from upstream to 6.14-stable.

Patch 7 fixes the race that can cause kernel panic when ublk server daemon is exiting.

It depends on patches 1-6 which simplifies & improves IO canceling when ublk server daemon is exiting as described here:

https://lore.kernel.org/linux-block/[email protected]/

Ming Lei (5):
ublk: add helper of ublk_need_map_io()
ublk: move device reset into ublk_ch_release()
ublk: remove __ublk_quiesce_dev()
ublk: simplify aborting ublk request
ublk: fix race between io_uring_cmd_complete_in_task and
ublk_cancel_cmd

Uday Shankar (2):
ublk: properly serialize all FETCH_REQs
ublk: improve detection and handling of ublk server exit

 drivers/block/ublk_drv.c | 550 +++++++++++++++++++++------------------
 1 file changed, 291 insertions(+), 259 deletions(-)
Signature · 1 line
2.43.0