Skip to content

SCSI target patches for kernel v4.16

Bart Van Assche target-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11target: Fix an argument name in a function documentation headerdrivers/target/target_core_transport.c+1 -10 replies
2/11target: Use config_item_name() instead of open-coding itdrivers/target/target_core_configfs.c drivers/target/target_core_sbc.c+6 -50 replies
3/11target: Avoid that EXTENDED COPY commands trigger lock inversiondrivers/target/target_core_device.c+24 -70 replies
4/11target: Make the session shutdown code also wait for commands that are being aborteddrivers/target/target_core_tmr.c drivers/target/target_core_transport.c include/target/target_core_base.h+29 -630 replies
5/11target: Add more documentationdrivers/target/target_core_transport.c+28 -60 replies
6/11target: Simplify core_tmr_handle_tas_abort()drivers/target/target_core_tmr.c+3 -120 replies
7/11target: Fold core_tmr_handle_tas_abort() into transport_cmd_finish_abort()drivers/target/target_core_internal.h drivers/target/target_core_tmr.c drivers/target/target_core_transport.c+11 -170 replies
8/11target: Simplify transport_generic_free_cmd() (1/2)drivers/target/target_core_transport.c+2 -60 replies
9/11target: Simplify transport_generic_free_cmd() (2/2)drivers/target/target_core_transport.c+4 -60 replies
10/11target: Simplify the code for waiting for command completiondrivers/target/target_core_transport.c include/target/target_core_base.h+9 -170 replies
11/11target/iscsi: Reduce number of __iscsit_free_cmd() callersdrivers/target/iscsi/iscsi_target.c drivers/target/iscsi/iscsi_target_configfs.c drivers/target/iscsi/iscsi_target_util.c+2 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] SCSI target patches for kernel v4.16

Hello Martin,

As you maybe know some time ago I started working on simplifying task management function handling in the SCSI target core (see e.g. "[PATCH 00/34] SCSI target patches for kernel v4.11"; January 2017;
https://www.spinics.net/lists/target-devel/msg14054.html). There were some patches in that series that rightfully raised Nic's eyebrows. Reviewing these patches myself made me realize that before TMF handling can be made synchronous that some unusual constructs in the SCSI target core have to be reworked first. Hence this patch series. The following tests have been run against this patch series for both the iSCSI and SRPT target drivers:
- Run the libiscsi conformance tests.
- Run fio ${dev} in one shell and while sg_reset -d ${dev}; do :; done from another shell. This is a good way to stress test TMF handling.
- For the SRP target driver: run the srp-test software.

Please consider this patch series for kernel v4.16.

Thanks,

Bart.

Bart Van Assche (11):
target: Fix an argument name in a function documentation header
target: Use config_item_name() instead of open-coding it
target: Avoid that EXTENDED COPY commands trigger lock inversion
target: Make the session shutdown code also wait for commands that are
being aborted
target: Add more documentation
target: Simplify core_tmr_handle_tas_abort()
target: Fold core_tmr_handle_tas_abort() into
transport_cmd_finish_abort()
target: Simplify transport_generic_free_cmd() (1/2)
target: Simplify transport_generic_free_cmd() (2/2)
target: Simplify the code for waiting for command completion target/iscsi: Reduce number of __iscsit_free_cmd() callers

 drivers/target/iscsi/iscsi_target.c          |   2 -
 drivers/target/iscsi/iscsi_target_configfs.c |   1 +
 drivers/target/iscsi/iscsi_target_util.c     |   4 +-
 drivers/target/target_core_configfs.c        |   4 +-
 drivers/target/target_core_device.c          |  31 +++--
 drivers/target/target_core_internal.h        |   2 +-
 drivers/target/target_core_sbc.c             |   7 +-
 drivers/target/target_core_tmr.c             |  30 +----
 drivers/target/target_core_transport.c       | 166 ++++++++++++---------------
 include/target/target_core_base.h            |   5 +-
 10 files changed, 113 insertions(+), 139 deletions(-)
Signature · 1 line
2.15.1