Skip to content

ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmd

Jared Holzman stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 8 repliesIn review
  2. v17 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ublk: add helper of ublk_need_map_io()drivers/block/ublk_drv.c+9 -41 reply
2/7ublk: properly serialize all FETCH_REQsdrivers/block/ublk_drv.c+49 -281 reply
3/7ublk: move device reset into ublk_ch_release()drivers/block/ublk_drv.c+72 -491 reply
4/7ublk: improve detection and handling of ublk server exitdrivers/block/ublk_drv.c+124 -991 reply
5/7ublk: remove __ublk_quiesce_dev()drivers/block/ublk_drv.c+2 -171 reply
6/7ublk: simplify aborting ublk requestdrivers/block/ublk_drv.c+20 -621 reply
7/7ublk: fix race between io_uring_cmd_complete_in_task and ublk_cancel_cmddrivers/block/ublk_drv.c+21 -61 reply

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCaleb Sander MateosUday ShankarJared HolzmanMing Lei
SeriesR-b
1/7R-b R-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 4 reviewers.

Read the v2 thread

Cover letter [PATCH 6.14.y v2 0/7] ublk: 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