diff options
author | Jeff Skirvin <jeffrey.d.skirvin@intel.com> | 2012-03-14 04:15:11 +0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2012-05-18 01:33:44 +0400 |
commit | de2eb4d5c5c25e8fb75d1e19092f24b83cb7d8d5 (patch) | |
tree | 537fae73fbf34d34b5e83151a467275986ffb6b5 /drivers/scsi/isci/host.h | |
parent | 6c6aacbb7787dccc6fb662bae66e599bbf0f07b5 (diff) | |
download | linux-de2eb4d5c5c25e8fb75d1e19092f24b83cb7d8d5.tar.xz |
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.h | 5 |
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 |