diff options
author | Jeff Skirvin <jeffrey.d.skirvin@intel.com> | 2011-10-27 18:05:22 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-31 05:19:47 -0400 |
commit | 3b34c169f8197e02529fa3ec703703c2ce418c57 (patch) | |
tree | 4834c97238ea0b7968de0bd9b7efd8c780175eda /drivers/scsi/isci/remote_device.c | |
parent | 98145cb722b51ccc3ba27166c9803545accba950 (diff) |
[SCSI] isci: Remove redundant isci_request.ttype field.
Use the existing IREQ_TMF flag as a request type indicator.
Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/isci/remote_device.c')
-rw-r--r-- | drivers/scsi/isci/remote_device.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/scsi/isci/remote_device.c b/drivers/scsi/isci/remote_device.c index 20c77edd4711..9d9e33d2ed51 100644 --- a/drivers/scsi/isci/remote_device.c +++ b/drivers/scsi/isci/remote_device.c | |||
@@ -1463,15 +1463,12 @@ void isci_device_clear_reset_pending(struct isci_host *ihost, struct isci_remote | |||
1463 | dev_dbg(&ihost->pdev->dev, "%s: idev = %p request = %p\n", | 1463 | dev_dbg(&ihost->pdev->dev, "%s: idev = %p request = %p\n", |
1464 | __func__, idev, isci_request); | 1464 | __func__, idev, isci_request); |
1465 | 1465 | ||
1466 | if (isci_request->ttype == io_task) { | 1466 | if (!test_bit(IREQ_TMF, &isci_request->flags)) { |
1467 | struct sas_task *task = isci_request_access_task(isci_request); | ||
1467 | 1468 | ||
1468 | unsigned long flags2; | 1469 | spin_lock(&task->task_state_lock); |
1469 | struct sas_task *task = isci_request_access_task( | ||
1470 | isci_request); | ||
1471 | |||
1472 | spin_lock_irqsave(&task->task_state_lock, flags2); | ||
1473 | task->task_state_flags &= ~SAS_TASK_NEED_DEV_RESET; | 1470 | task->task_state_flags &= ~SAS_TASK_NEED_DEV_RESET; |
1474 | spin_unlock_irqrestore(&task->task_state_lock, flags2); | 1471 | spin_unlock(&task->task_state_lock); |
1475 | } | 1472 | } |
1476 | } | 1473 | } |
1477 | spin_unlock_irqrestore(&ihost->scic_lock, flags); | 1474 | spin_unlock_irqrestore(&ihost->scic_lock, flags); |