Skip to content

ublk: one selftest fix and two zero copy fixes

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 Latest4 patches 1 replyApplied
  2. v13 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- add have_program check in new added generic_07 test(Caleb Sander Mateos)
- fixe usage help of ublk utility(Caleb Sander Mateos)
- add the 4th patch for removing one unnecessary check(Caleb Sander Mateos)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4selftests: ublk: fix UBLK_F_NEED_GET_DATAtools/testing/selftests/ublk/Makefile tools/testing/selftests/ublk/kublk.c tools/testing/selftests/ublk/kublk.h +2 more+48 -120 replies
2/4ublk: decouple zero copy from user copydrivers/block/ublk_drv.c+23 -120 replies
3/4ublk: enhance check for register/unregister io buffer commanddrivers/block/ublk_drv.c+20 -40 replies
4/4ublk: remove the check of ublk_need_req_ref() from __ublk_check_and_get_reqdrivers/block/ublk_drv.c+0 -30 replies

Reviews trailers per patch

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

PatchCaleb Sander Mateos
1/4R-b
2/4
3/4R-b
4/4

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 v6.15 v2 0/4] ublk: one selftest fix and two zero copy fixes

Hello Jens,

The 1st patch fixes UBLK_F_NEED_GET_DATA support in ublk selftest side.

The other two patches enhances check for zero copy feature.

The final patch removes one unnecessary check.

Thanks,
Ming

V2:
- add have_program check in new added generic_07 test(Caleb Sander Mateos)
- fixe usage help of ublk utility(Caleb Sander Mateos)
- add the 4th patch for removing one unnecessary check(Caleb Sander Mateos)

Ming Lei (4):
selftests: ublk: fix UBLK_F_NEED_GET_DATA
ublk: decouple zero copy from user copy
ublk: enhance check for register/unregister io buffer command
ublk: remove the check of ublk_need_req_ref() from
__ublk_check_and_get_req

 drivers/block/ublk_drv.c                      | 62 +++++++++++++------
 tools/testing/selftests/ublk/Makefile         |  1 +
 tools/testing/selftests/ublk/kublk.c          | 22 ++++---
 tools/testing/selftests/ublk/kublk.h          |  1 +
 .../testing/selftests/ublk/test_generic_07.sh | 28 +++++++++
 .../testing/selftests/ublk/test_stress_05.sh  |  8 +--
 6 files changed, 91 insertions(+), 31 deletions(-)
 create mode 100755 tools/testing/selftests/ublk/test_generic_07.sh
Signature · 1 line
2.47.0