Skip to content

ublk: cleanup & improvement & zc follow-up

Ming Lei linux-block 2 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. v2 Latest11 patches 2 repliesApplied
  2. v18 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- use io_uring_cmd_to_pdu() (Uday)
- improve zc document (Caleb)
- consolidate segment parameter interface (Caleb)
- add reviewed-by
- add one fix and comment on ubq->canceling
- fix one hang bug in V2

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/11ublk: make sure ubq->canceling is set when queue is frozendrivers/block/ublk_drv.c+29 -100 replies
2/11ublk: comment on ubq->canceling handling in ublk_queue_rq()drivers/block/ublk_drv.c+5 -00 replies
3/11ublk: remove two unused fields from 'struct ublk_queue'drivers/block/ublk_drv.c+0 -20 replies
4/11ublk: add helper of ublk_need_map_io()drivers/block/ublk_drv.c+9 -40 replies
5/11ublk: call io_uring_cmd_to_pdu to get uring_cmd pdudrivers/block/ublk_drv.c+1 -11 reply
6/11ublk: add segment parameterdrivers/block/ublk_drv.c include/uapi/linux/ublk_cmd.h+44 -10 replies
7/11ublk: document zero copy featureDocumentation/block/ublk.rst+26 -90 replies
8/11ublk: implement ->queue_rqs()drivers/block/ublk_drv.c+111 -200 replies
9/11ublk: rename ublk_rq_task_work_cb as ublk_cmd_tw_cbdrivers/block/ublk_drv.c+3 -30 replies
10/11selftests: ublk: add more tests for covering MQtools/testing/selftests/ublk/Makefile tools/testing/selftests/ublk/test_common.sh tools/testing/selftests/ublk/test_generic_02.sh +7 more+132 -330 replies
11/11selftests: ublk: add test for checking zero copy related parametertools/testing/selftests/ublk/Makefile tools/testing/selftests/ublk/null.c tools/testing/selftests/ublk/test_generic_03.sh+39 -10 replies

Reviews trailers per patch

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

PatchCaleb Sander Mateos
1/11
2/11
3/11R-b
4/11R-b
5/11R-b
6/11
7/11
8/11
9/11
10/11
11/11

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

Read the v2 thread

Cover letter [PATCH V2 00/11] ublk: cleanup & improvement & zc follow-up

Hello Jens,

The 1st two fixes ublk_abort_requests(), and adds comment on handling ubq->canceling.

The 3rd ~ 5th patches are cleanup.

The 6th and 7th are zc-followup.

The 8th & 9th patch implements ->queue_rqs() and improves IOPS by > 10%.

The last two patches are self-test for ->queue_rqs() & segment parameter change.

V2:
- use io_uring_cmd_to_pdu() (Uday)
- improve zc document (Caleb)
- consolidate segment parameter interface (Caleb)
- add reviewed-by
- add one fix and comment on ubq->canceling
- fix one hang bug in V2

Ming Lei (11):
ublk: make sure ubq->canceling is set when queue is frozen
ublk: comment on ubq->canceling handling in ublk_queue_rq()
ublk: remove two unused fields from 'struct ublk_queue'
ublk: add helper of ublk_need_map_io()
ublk: call io_uring_cmd_to_pdu to get uring_cmd pdu
ublk: add segment parameter
ublk: document zero copy feature
ublk: implement ->queue_rqs()
ublk: rename ublk_rq_task_work_cb as ublk_cmd_tw_cb
selftests: ublk: add more tests for covering MQ
selftests: ublk: add test for checking zero copy related parameter

 Documentation/block/ublk.rst                  |  35 ++-
 drivers/block/ublk_drv.c                      | 214 ++++++++++++++----
 include/uapi/linux/ublk_cmd.h                 |  25 ++
 tools/testing/selftests/ublk/Makefile         |   4 +
 tools/testing/selftests/ublk/null.c           |  11 +-
 tools/testing/selftests/ublk/test_common.sh   |   6 +
 .../testing/selftests/ublk/test_generic_02.sh |  44 ++++
 .../testing/selftests/ublk/test_generic_03.sh |  28 +++
 tools/testing/selftests/ublk/test_loop_01.sh  |  14 +-
 tools/testing/selftests/ublk/test_loop_03.sh  |  14 +-
 tools/testing/selftests/ublk/test_loop_05.sh  |  28 +++
 .../testing/selftests/ublk/test_stress_01.sh  |   6 +-
 .../testing/selftests/ublk/test_stress_02.sh  |   6 +-
 .../testing/selftests/ublk/test_stripe_01.sh  |  14 +-
 .../testing/selftests/ublk/test_stripe_03.sh  |  30 +++
 15 files changed, 397 insertions(+), 82 deletions(-)
 create mode 100755 tools/testing/selftests/ublk/test_generic_02.sh
 create mode 100755 tools/testing/selftests/ublk/test_generic_03.sh
 create mode 100755 tools/testing/selftests/ublk/test_loop_05.sh
 create mode 100755 tools/testing/selftests/ublk/test_stripe_03.sh
Signature · 1 line
2.47.0