|
@@ -1221,7 +1221,12 @@ static int storvsc_host_reset_handler(struct scsi_cmnd *scmnd)
|
|
/*
|
|
/*
|
|
* At this point, all outstanding requests in the adapter
|
|
* At this point, all outstanding requests in the adapter
|
|
* should have been flushed out and return to us
|
|
* should have been flushed out and return to us
|
|
|
|
+ * There is a potential race here where the host may be in
|
|
|
|
+ * the process of responding when we return from here.
|
|
|
|
+ * Just wait for all in-transit packets to be accounted for
|
|
|
|
+ * before we return from here.
|
|
*/
|
|
*/
|
|
|
|
+ storvsc_wait_to_drain(stor_device);
|
|
|
|
|
|
return SUCCESS;
|
|
return SUCCESS;
|
|
}
|
|
}
|