From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> Hi Jens, HCH & Co, This -v2 series introduces target_iostate + target_iomem descriptors that abstract what existing target backend drivers require in order to process I/O, sync_cache, write_same and unmap via sbc_ops. The purpose is to allow existing target backend drivers from within /sys/kernel/config/target/core/ to be accessed externally outside of the existing /sys/kernel/config/target/$FABRIC/ configfs layout, to operate independently of se_cmd + SCSI specific dependencies. Namely, it's intended for the newly released nvme-target code to utilize existing target-core backend drivers + T10-PI logic, without requiring consumers to be under /sys/kernel/config/target/$FABRIC/ configfs layout. Also included is a prerequisite bug-fix for target-core, and IBLOCK optimization for eliminating the internal memory allocation. v2 changes: - Convert sbc_ops->execute_unmap() capable backends to use __blkdev_issue_discard() asynchronous completion. - Convert IBLOCK to use inline bio + bvec, and use blk_poll() following nvmet/io-cmd for I/O submission. Please review, --nab Nicholas Bellinger (16): target: Fix for hang of Ordered task in TCM target: Add target_iomem descriptor target: Add target_iostate descriptor target: Add target_complete_ios wrapper target: Setup target_iostate memory in __target_execute_cmd target: Convert se_cmd->execute_cmd to target_iostate target/sbc: Convert sbc_ops->execute_rw to target_iostate target/sbc: Convert sbc_dif_copy_prot to target_iostate target/file: Convert sbc_dif_verify to target_iostate target/iblock: Fold iblock_req into target_iostate target/sbc: Convert sbc_ops->execute_sync_cache to target_iostate target/sbc: Convert sbc_ops->execute_write_same to target_iostate target/sbc: Convert sbc_ops->execute_unmap to target_iostate target: Make sbc_ops accessable via target_backend_ops target/sbc: Convert ->execute_unmap to __blkdev_issue_discard target/iblock: Convert to inline bio/bvec + blk_poll drivers/infiniband/ulp/isert/ib_isert.c | 61 ++-- drivers/infiniband/ulp/srpt/ib_srpt.c | 6 +- drivers/scsi/qla2xxx/qla_target.c | 64 ++--- drivers/scsi/qla2xxx/tcm_qla2xxx.c | 29 +- drivers/target/iscsi/cxgbit/cxgbit_ddp.c | 8 +- drivers/target/iscsi/cxgbit/cxgbit_target.c | 20 +- drivers/target/iscsi/iscsi_target.c | 26 +- drivers/target/iscsi/iscsi_target_datain_values.c | 18 +- drivers/target/iscsi/iscsi_target_erl0.c | 24 +- drivers/target/iscsi/iscsi_target_erl1.c | 8 +- drivers/target/iscsi/iscsi_target_seq_pdu_list.c | 40 +-- drivers/target/iscsi/iscsi_target_tmr.c | 4 +- drivers/target/iscsi/iscsi_target_util.c | 4 +- drivers/target/loopback/tcm_loop.c | 2 +- drivers/target/sbp/sbp_target.c | 8 +- drivers/target/target_core_alua.c | 43 +-- drivers/target/target_core_alua.h | 6 +- drivers/target/target_core_device.c | 24 +- drivers/target/target_core_file.c | 148 +++++----- drivers/target/target_core_iblock.c | 266 ++++++++---------- drivers/target/target_core_iblock.h | 5 - drivers/target/target_core_internal.h | 1 + drivers/target/target_core_pr.c | 68 ++--- drivers/target/target_core_pr.h | 8 +- drivers/target/target_core_pscsi.c | 26 +- drivers/target/target_core_rd.c | 44 +-- drivers/target/target_core_sbc.c | 321 +++++++++++++--------- drivers/target/target_core_spc.c | 47 ++-- drivers/target/target_core_transport.c | 272 ++++++++++-------- drivers/target/target_core_user.c | 41 +-- drivers/target/target_core_xcopy.c | 33 ++- drivers/target/target_core_xcopy.h | 4 +- drivers/target/tcm_fc/tfc_cmd.c | 14 +- drivers/target/tcm_fc/tfc_io.c | 21 +- drivers/usb/gadget/function/f_tcm.c | 50 ++-- drivers/vhost/scsi.c | 2 +- include/target/target_core_backend.h | 30 +- include/target/target_core_base.h | 76 +++-- include/target/target_core_fabric.h | 3 +- include/trace/events/target.h | 4 +- 40 files changed, 1012 insertions(+), 867 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html