Skip to content

target: Bug-fixes for v4.9-rc1

Nicholas A. Bellinger linux-scsi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target: Re-add missing SCF_ACK_KREF assignment in v4.1.ydrivers/target/target_core_transport.c+3 -10 replies
2/3target: Make EXTENDED_COPY 0xe4 failure return COPY TARGET DEVICE NOT REACHABLEdrivers/target/target_core_transport.c drivers/target/target_core_xcopy.c include/target/target_core_base.h+24 -60 replies
3/3target: Don't override EXTENDED_COPY xcopy_pt_cmd SCSI status codedrivers/target/target_core_xcopy.c+12 -40 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchNixon VincentDinesh IsraniVaibhav Tandon
1/3T-b
2/3T-b T-b
3/3T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] target: Bug-fixes for v4.9-rc1

From: Nicholas Bellinger <[email protected]>

Hi folks,

Here are three outstanding target bug-fixes encountered during failure and longevity testing with v4.1.y code.

The patch #1 is a v4.1+ regression where the missing upstream assignment of SCF_ACK_KREF results in se_cmd->cmd_kref leakage during TMR ABORT_TASK + LUN_RESET with concurrent session reinstatement. v4.0 and earlier code is not effected.

The latter two address long-standing EXTENDED_COPY status bugs, that can result in ESX hosts failing VAAI BlockCopy operations.

Patch #2 adds COPY TARGET DEVICE NOT REACHABLE during 0xe4 target descriptor NAA IEEE 0x83 /sys/kernel/config/target/core/ device lookup failure, in order to signal local copy fallback to host.

Patch #3 propigates up correct local copy I/O SCSI status (eg: RESERVATION_CONFLICT) to host.

Please review.

--nab

Dinesh Israni (1):
target: Don't override EXTENDED_COPY xcopy_pt_cmd SCSI status code

Nicholas Bellinger (2):
target: Re-add missing SCF_ACK_KREF assignment in v4.1.y
target: Make EXTENDED_COPY 0xe4 failure return COPY TARGET DEVICE NOT
REACHABLE

 drivers/target/target_core_transport.c | 11 ++++++++++-
 drivers/target/target_core_xcopy.c     | 34 ++++++++++++++++++++++++++--------
 include/target/target_core_base.h      |  1 +
 3 files changed, 37 insertions(+), 9 deletions(-)
Signature · 1 line
1.9.1