[SCSI] storvsc: Account for in-transit packets in the RESET path
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 2 Oct 2012 18:03:31 +0000 (11:03 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 9 Oct 2012 11:28:58 +0000 (12:28 +0100)
commit5c1b10ab7f93d24f29b5630286e323d1c5802d5c
tree2a16bba3a1d7d25d6e7a0cfdf4aa24d865efaeca
parentf24b5cb818c6789e5d42d4881f34238a5fa0b40c
[SCSI] storvsc: Account for in-transit packets in the RESET path

Properly account for I/O in transit before returning from the RESET call.
In the absense of this patch, we could have a situation where the host may
respond to a command that was issued prior to the issuance of the RESET
command at some arbitrary time after responding to the RESET command.
Currently, the host does not do anything with the RESET command.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/storvsc_drv.c