Skip to content

target: Add target_submit_cmd_map_sgls + convert tcm_loop+tcm_vhost

Nicholas A. Bellinger linux-scsi 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target: Add target_submit_cmd_map_sgls for SGL fabric memory passthroughdrivers/target/target_core_transport.c include/target/target_core_base.h include/target/target_core_fabric.h+63 -62 replies
2/4tcm_loop: Convert I/O path to use target_submit_cmd_map_sglsdrivers/target/loopback/tcm_loop.c include/target/target_core_base.h+8 -550 replies
3/4target: Add control CDB READ payload zero work-arounddrivers/target/target_core_transport.c+21 -00 replies
4/4tcm_vhost: Convert I/O path to use target_submit_cmd_map_sglsdrivers/vhost/tcm_vhost.c drivers/vhost/tcm_vhost.h+22 -540 replies

Reviews trailers per patch

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

PatchChristoph HellwigMichael S. Tsirkin
1/4R-b
2/4R-b
3/4
4/4A-b

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 0/4] target: Add target_submit_cmd_map_sgls + convert tcm_loop+tcm_vhost

From: Nicholas Bellinger <[email protected]>

Hi folks,

Here is a -v2 of the series to allow target_submit_cmd() logic to accept SGL passthrough memory using existing transport_generic_map_mem_to_cmd() code based upon hch's feedback this morning.

The changelog from v1 -> v2 includes:

- Rename target_submit_cmd_map_mem() -> target_submit_cmd_map_sgls() and export kernel symbol to fabrics.
- Drop TARGET_SCF_MAP_MEM flag in favor of non zero sgl_count check
- Drop TARGET_SCF_MAP_CLEAR_MEM flag, and zero control CDB READ payload for all fabrics doing SGL passthrough
- Update tcm_loop+tcm_vhost to use target_submit_cmd_map_sgls

All of the v2 changes are straight-forward enough, but please let us know if there are any more concerns here.

Thank you!

--nab

Nicholas Bellinger (4):
target: Add target_submit_cmd_map_sgls for SGL fabric memory
passthrough
tcm_loop: Convert I/O path to use target_submit_cmd_map_sgls
target: Add control CDB READ payload zero work-around
tcm_vhost: Convert I/O path to use target_submit_cmd_map_sgls

 drivers/target/loopback/tcm_loop.c     |   62 +++--------------------
 drivers/target/target_core_transport.c |   84 ++++++++++++++++++++++++++++++--
 drivers/vhost/tcm_vhost.c              |   68 +++++--------------------
 drivers/vhost/tcm_vhost.h              |    8 +++
 include/target/target_core_fabric.h    |    3 +
 5 files changed, 112 insertions(+), 113 deletions(-)
Signature · 1 line
1.7.2.5