History

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.

Nicholas Bellinger committed 13 years ago

Commit 8a955d61 parent 366bda11 file · +2 −1Browse files

Unified · Split

drivers/target/target_core_xcopy.c+2−1
@@ -679,7 +679,8 @@ static int target_xcopy_issue_pt_cmd(struct xcopy_pt_cmd *xpt_cmd) · 678 unmodified lines
679 679
680 pr_debug("target_xcopy_issue_pt_cmd(): SCSI status: 0x%02x\n",680 pr_debug("target_xcopy_issue_pt_cmd(): SCSI status: 0x%02x\n",
681 se_cmd->scsi_status);681 se_cmd->scsi_status);
682 return 0;682
683 return (se_cmd->scsi_status) ? -EINVAL : 0;
683}684}
684 685
685static int target_xcopy_read_source(686static int target_xcopy_read_source(

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t