diff options
author | Jeff Skirvin <jeffrey.d.skirvin@intel.com> | 2012-03-13 17:15:11 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2012-05-17 14:33:44 -0700 |
commit | de2eb4d5c5c25e8fb75d1e19092f24b83cb7d8d5 (patch) | |
tree | 537fae73fbf34d34b5e83151a467275986ffb6b5 /drivers/scsi/isci/remote_node_context.c | |
parent | 6c6aacbb7787dccc6fb662bae66e599bbf0f07b5 (diff) | |
download | linux-de2eb4d5c5c25e8fb75d1e19092f24b83cb7d8d5.tar.bz2 |
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/remote_node_context.c')
-rw-r--r-- | drivers/scsi/isci/remote_node_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/isci/remote_node_context.c b/drivers/scsi/isci/remote_node_context.c index f5792a901e02..1910100638a2 100644 --- a/drivers/scsi/isci/remote_node_context.c +++ b/drivers/scsi/isci/remote_node_context.c @@ -190,9 +190,13 @@ static void sci_remote_node_context_setup_to_destroy( scics_sds_remote_node_context_callback callback, void *callback_parameter) { + struct isci_host *ihost = idev_to_ihost(rnc_to_dev(sci_rnc)); + sci_rnc->destination_state = RNC_DEST_FINAL; sci_rnc->user_callback = callback; sci_rnc->user_cookie = callback_parameter; + + wake_up(&ihost->eventq); } /** |