Skip to content

ublk: enable UBLK_F_SHMEM_ZC on zone appends

Caleb Sander Mateos linux-block lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2ublk: move ublk_req_build_flags() earlierdrivers/block/ublk_drv.c+31 -320 replies
2/2ublk: factor out ublk_init_iod() helperdrivers/block/ublk_drv.c+29 -310 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMing Lei
SeriesR-b
1/2
2/2

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

Read the v1 thread

Cover letter [PATCH 7.2 0/2] ublk: enable UBLK_F_SHMEM_ZC on zone appends

Commit 4d4a512a1f87 ("ublk: add PFN-based buffer matching in I/O path") added support to ublk_setup_iod() for matching request buffers against registered UBLK_F_SHMEM_ZC buffers, but missed adding it to ublk_setup_iod_zoned() for zoned requests. ublk_setup_iod_zoned() duplicates the code for initializing struct ublksrv_io_desc, making it easy to forget to keep them in sync. Move the common code to a helper function ublk_init_iod(). This allows zone appends to leverage the shared memory zero copy optimization.

This series is based on "ublk: optimize ublk_rq_has_data()" [1]

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

Caleb Sander Mateos (2):
ublk: move ublk_req_build_flags() earlier
ublk: factor out ublk_init_iod() helper

 drivers/block/ublk_drv.c | 123 +++++++++++++++++++--------------------
 1 file changed, 60 insertions(+), 63 deletions(-)
Signature · 1 line
2.54.0