Skip to content

Make ABORT and LUN RESET handling synchronous

Bart Van Assche target-devel 2 versions – Applied

Status from this message: Applied to 4.21/scsi-queue. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 2 repliesApplied
  2. v110 patches 6 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10target/tcmu: Fix queue_cmd_ring() declarationdrivers/target/target_core_user.c+1 -10 replies
2/10target/core: Use kvcalloc() instead of open-coding itdrivers/target/target_core_transport.c+4 -70 replies
3/10target/core: Simplify transport_clear_lun_ref()drivers/target/target_core_device.c drivers/target/target_core_tpg.c drivers/target/target_core_transport.c +1 more+5 -330 replies
4/10target/core: Make sure that target_wait_for_sess_cmds() waits long enoughdrivers/target/target_core_transport.c drivers/target/target_core_xcopy.c include/target/target_core_base.h +1 more+32 -120 replies
5/10target/core: Use system workqueues for TMFdrivers/target/target_core_device.c drivers/target/target_core_transport.c include/target/target_core_base.h+1 -180 replies
6/10target/core: Make it possible to wait from more than one context for command compledrivers/target/target_core_transport.c include/target/target_core_base.h+11 -60 replies
7/10target/core: Simplify the code for aborting SCSI commandsdrivers/target/iscsi/iscsi_target_configfs.c drivers/target/target_core_transport.c include/target/target_core_fabric.h+11 -200 replies
8/10target/core: Fix TAS handling for aborted commandsdrivers/target/iscsi/iscsi_target.c drivers/target/iscsi/iscsi_target_erl1.c drivers/target/target_core_tmr.c +3 more+10 -890 replies
9/10target/core: Make ABORT and LUN RESET handling synchronousdrivers/target/target_core_internal.h drivers/target/target_core_tmr.c drivers/target/target_core_transport.c +1 more+148 -1340 replies
10/10target/core: Reduce the amount of code executed with a spinlock helddrivers/target/target_core_transport.c+2 -60 replies

Reviews trailers per patch

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

PatchDavid DisseldorpChristoph Hellwig
1/10R-b
2/10R-b
3/10
4/10
5/10R-b
6/10
7/10
8/10
9/10
10/10

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 00/10] Make ABORT and LUN RESET handling synchronous

Hello Martin,

This is a respin of the patch series that makes ABORT and LUN RESET handling synchronous. Compared to last time when this patch series was posted, the actual patch that makes task management function handling synchronous has been split into three patches. That makes the changes easier to follow. Please consider this patch series for kernel v4.21.

Thanks,

Bart.

Changes compared to v1: restored the __GFP_RETRY_MAYFAIL flag in patch 2/10
which had been left out accidentally.

Bart Van Assche (10):
target/tcmu: Fix queue_cmd_ring() declaration target/core: Use kvcalloc() instead of open-coding it target/core: Simplify transport_clear_lun_ref() target/core: Make sure that target_wait_for_sess_cmds() waits long
enough
target/core: Use system workqueues for TMF
target/core: Make it possible to wait from more than one context for
command completion
target/core: Simplify the code for aborting SCSI commands target/core: Fix TAS handling for aborted commands target/core: Make ABORT and LUN RESET handling synchronous target/core: Reduce the amount of code executed with a spinlock held

 drivers/target/iscsi/iscsi_target.c          |  11 +-
 drivers/target/iscsi/iscsi_target_configfs.c |   2 +
 drivers/target/iscsi/iscsi_target_erl1.c     |  28 +-
 drivers/target/target_core_device.c          |  17 -
 drivers/target/target_core_internal.h        |   2 -
 drivers/target/target_core_tmr.c             |  52 ++-
 drivers/target/target_core_tpg.c             |   1 -
 drivers/target/target_core_transport.c       | 406 ++++++++-----------
 drivers/target/target_core_user.c            |   2 +-
 drivers/target/target_core_xcopy.c           |   6 +-
 include/target/target_core_base.h            |   7 +-
 include/target/target_core_fabric.h          |  11 +-
 12 files changed, 222 insertions(+), 323 deletions(-)
Signature · 1 line
2.20.0.rc0.387.gc7a69e6b6c-goog