diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-10-31 10:54:40 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-03-16 05:27:11 +0300 |
commit | b5d330a1179d7674cdcc7fe2aa45d04d167571a1 (patch) | |
tree | 3270efe509a075fc0a6b3fe4277935dd48f14dd9 /lib/Makefile | |
parent | fbe20cd70e1b964cc4959ba28765e06b5b25d038 (diff) | |
download | linux-b5d330a1179d7674cdcc7fe2aa45d04d167571a1.tar.xz |
target: Use correct SCSI status during EXTENDED_COPY exception
commit 0583c261e6325f392c1f7a1b9112e31298e1a4bd upstream.
This patch adds the missing target_complete_cmd() SCSI status
parameter change in target_xcopy_do_work(), that was originally
missing in commit 926317de33.
It correctly propigates up the correct SCSI status during
EXTENDED_COPY exception cases, instead of always using the
hardcoded SAM_STAT_CHECK_CONDITION from original code.
This is required for ESX host environments that expect to
hit SAM_STAT_RESERVATION_CONFLICT for certain scenarios,
and SAM_STAT_CHECK_CONDITION results in non-retriable
status for these cases.
Reported-by: Nixon Vincent <nixon.vincent@calsoftinc.com>
Tested-by: Nixon Vincent <nixon.vincent@calsoftinc.com>
Cc: Nixon Vincent <nixon.vincent@calsoftinc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'lib/Makefile')
0 files changed, 0 insertions, 0 deletions