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>
This commit is contained in:

committed by
Dan Williams

parent
6c6aacbb77
commit
de2eb4d5c5
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user