diff options
author | Steffen Maier <maier@linux.vnet.ibm.com> | 2011-08-15 14:40:30 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-27 08:37:00 -0600 |
commit | cc405acee244310cc87ddc5e3f4bc61342ec8161 (patch) | |
tree | 8f814a83f0b950527fba5a9215ff866f875cf20b /drivers/s390/scsi/zfcp_fsf.c | |
parent | f0c568a478f03536602b1730b9473ee86d61d836 (diff) | |
download | linux-cc405acee244310cc87ddc5e3f4bc61342ec8161.tar.gz linux-cc405acee244310cc87ddc5e3f4bc61342ec8161.tar.bz2 linux-cc405acee244310cc87ddc5e3f4bc61342ec8161.zip |
[SCSI] zfcp: non-experimental support for DIF/DIX
DIF/DIX support for zfcp is no longer experimental,
and config option is no longer necessary.
Return error from queuecommand for unsupported data directions.
Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fsf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 022fb6a8cb83..fa86c6a28572 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c @@ -2207,7 +2207,8 @@ int zfcp_fsf_fcp_cmnd(struct scsi_cmnd *scsi_cmnd) io->ref_tag_value = scsi_get_lba(scsi_cmnd) & 0xFFFFFFFF; } - zfcp_fsf_set_data_dir(scsi_cmnd, &io->data_direction); + if (zfcp_fsf_set_data_dir(scsi_cmnd, &io->data_direction)) + goto failed_scsi_cmnd; fcp_cmnd = (struct fcp_cmnd *) &req->qtcb->bottom.io.fcp_cmnd; zfcp_fc_scsi_to_fcp(fcp_cmnd, scsi_cmnd, 0); |