]> git.baikalelectronics.ru Git - kernel.git/commit
target: Generate failure for XCOPY I/O with non-zero scsi_status
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 24 Oct 2013 07:15:27 +0000 (00:15 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 24 Oct 2013 07:28:27 +0000 (00:28 -0700)
commit16168511a262cbdd3a3c8e7bc7e3dd99d6f22ec4
tree56cae0faf999929919c2cec01f7e9c733394ec0a
parentefa11194da8e36da132110e1b5de12f929642ee8
target: Generate failure for XCOPY I/O with non-zero scsi_status

This patch adds the missing non-zero se_cmd->scsi_status check required
for local XCOPY I/O within target_xcopy_issue_pt_cmd() to signal an
exception case failure.

This will trigger the generation of SAM_STAT_CHECK_CONDITION status
from within target_xcopy_do_work() process context code.

Reported-by: Thomas Glanzmann <thomas@glanzmann.de>
Reported-by: Douglas Gilbert <dgilbert@interlog.com>
Cc: Thomas Glanzmann <thomas@glanzmann.de>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_xcopy.c