isci: Wait for RNC resumption before leaving the abort path.
In the case of TMF execution, or device resets, wait for the RNC to fully resume before returning to the caller. This ensures that the remote device will not fail I/O requests while waiting for the RNC resumption to complete. 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
d76689e46c
commit
0cce165e28
@@ -87,6 +87,7 @@ struct isci_remote_device {
|
||||
#define IDEV_IO_NCQERROR 5
|
||||
#define IDEV_RNC_LLHANG_ENABLED 6
|
||||
#define IDEV_ABORT_PATH_ACTIVE 7
|
||||
#define IDEV_ABORT_PATH_RESUME_PENDING 8
|
||||
unsigned long flags;
|
||||
struct kref kref;
|
||||
struct isci_port *isci_port;
|
||||
@@ -101,6 +102,8 @@ struct isci_remote_device {
|
||||
u32 started_request_count;
|
||||
struct isci_request *working_request;
|
||||
u32 not_ready_reason;
|
||||
scics_sds_remote_node_context_callback abort_resume_cb;
|
||||
void *abort_resume_cbparam;
|
||||
};
|
||||
|
||||
#define ISCI_REMOTE_DEVICE_START_TIMEOUT 5000
|
||||
|
Reference in New Issue
Block a user