Skip to content

ublk: introduce UBLK_CMD_TRY_STOP_DEV

Yoav Cohen linux-block 7 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest3 patches 2 repliesApplied
  2. v63 patches 4 repliesSuperseded
  3. v53 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v42 patches5 repliesSuperseded
v32 patches3 repliesSuperseded
v22 patches2 repliesSuperseded
v12 patches1 replySuperseded

Changes in v7 from the cover letter

- Rebased on top of for-7.0

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/3ublk: make ublk_ctrl_stop_dev return voiddrivers/block/ublk_drv.c+3 -30 replies
2/3ublk: add UBLK_CMD_TRY_STOP_DEV commanddrivers/block/ublk_drv.c include/uapi/linux/ublk_cmd.h+50 -30 replies
3/3selftests: ublk: add stop command with --safe optiontools/testing/selftests/ublk/Makefile tools/testing/selftests/ublk/kublk.c tools/testing/selftests/ublk/kublk.h +1 more+112 -01 reply

Reviews trailers per patch

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

PatchMing Lei
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/3] ublk: introduce UBLK_CMD_TRY_STOP_DEV

Changes since v2:
- Address Ming Lei’s comments in patch 2:
- Add a feature flag and some minor comments.
- Patch 1 unchanged, keeps Reviewed-by

Changes since v3:
- Address Caleb's comments in patch 2
- add to kublk.c
- add to auto features
- set feature flag to 17

Changes since v4:
- Selftest added by Ming
- Move kublk.c change to new selftest commit

Changes since v5:
- Return -ENXIO when device is going down instead of -EBUSY
- Update the patch 2 commit msg

Changes since v6:
- Rebased on top of for-7.0

Ming Lei (1):
selftests: ublk: add stop command with --safe option

Yoav Cohen (2):
ublk: make ublk_ctrl_stop_dev return void
ublk: add UBLK_CMD_TRY_STOP_DEV command

 drivers/block/ublk_drv.c                      | 50 ++++++++++++++--
 include/uapi/linux/ublk_cmd.h                 |  9 ++-
 tools/testing/selftests/ublk/Makefile         |  1 +
 tools/testing/selftests/ublk/kublk.c          | 53 +++++++++++++++++
 tools/testing/selftests/ublk/kublk.h          |  1 +
 .../testing/selftests/ublk/test_generic_16.sh | 57 +++++++++++++++++++
 6 files changed, 165 insertions(+), 6 deletions(-)
 create mode 100755 tools/testing/selftests/ublk/test_generic_16.sh
Signature · 1 line
2.39.5 (Apple Git-154)