aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2013-04-12 09:25:15 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-05-02 14:50:23 -0400
commitf8804b7239b27baca1ab44344318acb8fd55f9ae (patch)
treec000d21c8a02d0653413eeae718f0690f175662a /drivers/scsi
parent96e58ce0f64a9d34a4bbeb7916884f327baa5ff1 (diff)
[SCSI] ibmvfc: Properly set cancel flags when cancelling abort
The flags on a cancel operation are intended to indicate what, if any, TMF will follow the cancel request. This fixes a case where we were incorrectly setting the abort task set flag on the cancel flag when we were cancelling an abort task set. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Acked-by: Robert Jennings <rcj@linux.vnet.ibm.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/ibmvscsi/ibmvfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c
index cc82d0f322b6..e65262070749 100644
--- a/drivers/scsi/ibmvscsi/ibmvfc.c
+++ b/drivers/scsi/ibmvscsi/ibmvfc.c
@@ -2327,7 +2327,7 @@ static int ibmvfc_abort_task_set(struct scsi_device *sdev)
2327 timeout = wait_for_completion_timeout(&evt->comp, timeout); 2327 timeout = wait_for_completion_timeout(&evt->comp, timeout);
2328 2328
2329 if (!timeout) { 2329 if (!timeout) {
2330 rc = ibmvfc_cancel_all(sdev, IBMVFC_TMF_ABORT_TASK_SET); 2330 rc = ibmvfc_cancel_all(sdev, 0);
2331 if (!rc) { 2331 if (!rc) {
2332 rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key); 2332 rc = ibmvfc_wait_for_ops(vhost, sdev->hostdata, ibmvfc_match_key);
2333 if (rc == SUCCESS) 2333 if (rc == SUCCESS)