]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] isci: No need to manage the pending reset bit on pending requests.
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>
Thu, 27 Oct 2011 22:05:27 +0000 (15:05 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 31 Oct 2011 09:20:28 +0000 (13:20 +0400)
The lldd does not need to look at or manage the pending device
reset bit in pending sas_tasks.

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>
drivers/scsi/isci/remote_device.c
drivers/scsi/isci/remote_device.h
drivers/scsi/isci/task.c

index 9d9e33d2ed5171218017feb40f383742e35e189c..b207cd3b15a0514da4579e9e869556d6b95dc961 100644 (file)
@@ -1438,38 +1438,3 @@ int isci_remote_device_found(struct domain_device *domain_dev)
 
        return status == SCI_SUCCESS ? 0 : -ENODEV;
 }
-
-/**
- * isci_device_clear_reset_pending() - This function will clear if any pending
- *    reset condition flags on the device.
- * @request: This parameter is the isci_device object.
- *
- * true if there is a reset pending for the device.
- */
-void isci_device_clear_reset_pending(struct isci_host *ihost, struct isci_remote_device *idev)
-{
-       struct isci_request *isci_request;
-       struct isci_request *tmp_req;
-       unsigned long flags = 0;
-
-       dev_dbg(&ihost->pdev->dev, "%s: idev=%p, ihost=%p\n",
-                __func__, idev, ihost);
-
-       spin_lock_irqsave(&ihost->scic_lock, flags);
-
-       /* Clear reset pending on all pending requests. */
-       list_for_each_entry_safe(isci_request, tmp_req,
-                                &idev->reqs_in_process, dev_node) {
-               dev_dbg(&ihost->pdev->dev, "%s: idev = %p request = %p\n",
-                        __func__, idev, isci_request);
-
-               if (!test_bit(IREQ_TMF, &isci_request->flags)) {
-                       struct sas_task *task = isci_request_access_task(isci_request);
-
-                       spin_lock(&task->task_state_lock);
-                       task->task_state_flags &= ~SAS_TASK_NEED_DEV_RESET;
-                       spin_unlock(&task->task_state_lock);
-               }
-       }
-       spin_unlock_irqrestore(&ihost->scic_lock, flags);
-}
index bee6dd2d0fe75ed1f8c7efe5f2d98d4ecb5e36e2..483ee50152f3694dc18a27b5a3fdfc76169961ea 100644 (file)
@@ -132,8 +132,7 @@ void isci_remote_device_nuke_requests(struct isci_host *ihost,
                                      struct isci_remote_device *idev);
 void isci_remote_device_gone(struct domain_device *domain_dev);
 int isci_remote_device_found(struct domain_device *domain_dev);
-void isci_device_clear_reset_pending(struct isci_host *ihost,
-                                    struct isci_remote_device *idev);
+
 /**
  * sci_remote_device_stop() - This method will stop both transmission and
  *    reception of link activity for the supplied remote device.  This method
index 80e1a69ac96f83d02e1bc52c5939885b19fb6ca9..6d8ff15a03d1231d258a069e191c20f148c59028 100644 (file)
@@ -1570,9 +1570,6 @@ static int isci_reset_device(struct isci_host *ihost,
        }
        spin_unlock_irqrestore(&ihost->scic_lock, flags);
 
-       /* Make sure all pending requests are able to be fully terminated. */
-       isci_device_clear_reset_pending(ihost, idev);
-
        /* If this is a device on an expander, disable BCN processing. */
        if (!scsi_is_sas_phy_local(phy))
                set_bit(IPORT_BCN_BLOCKED, &iport->flags);