summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/host.h
diff options
context:
space:
mode:
authorJeff Skirvin <jeffrey.d.skirvin@intel.com>2012-03-14 01:15:11 +0100
committerDan Williams <dan.j.williams@intel.com>2012-05-17 23:33:44 +0200
commitde2eb4d5c5c25e8fb75d1e19092f24b83cb7d8d5 (patch)
tree537fae73fbf34d34b5e83151a467275986ffb6b5 /drivers/scsi/isci/host.h
parentisci: Fixed RNC bug that lost the suspension or resumption during destroy (diff)
downloadlinux-de2eb4d5c5c25e8fb75d1e19092f24b83cb7d8d5.tar.xz
linux-de2eb4d5c5c25e8fb75d1e19092f24b83cb7d8d5.zip
isci: End the RNC resumption wait when the RNC is destroyed.
While the RNC is suspended for I/O cleanup, the remote device can be stopped and the RNC setup for destruction. These changes accomodate that case in the abort path. Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/host.h')
-rw-r--r--drivers/scsi/isci/host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h
index 8e8b46322c64..9ab58e0540e7 100644
--- a/drivers/scsi/isci/host.h
+++ b/drivers/scsi/isci/host.h
@@ -340,6 +340,11 @@ static inline struct isci_host *dev_to_ihost(struct domain_device *dev)
return dev->port->ha->lldd_ha;
}
+static inline struct isci_host *idev_to_ihost(struct isci_remote_device *idev)
+{
+ return dev_to_ihost(idev->domain_dev);
+}
+
/* we always use protocol engine group zero */
#define ISCI_PEG 0