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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 30 Oct 2012 23:26:39 +0000 (23:26 +0000)
commite14e98d41430a225e91800a118272718ddd4969d
tree9370874ac0e8c1fbf1daa2f15e2c9a44fbfd22e3
parent532522966057823f75a606d46cfba4ec5bf9dcc0
storvsc: Account for in-transit packets in the RESET path

commit 5c1b10ab7f93d24f29b5630286e323d1c5802d5c upstream.

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>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
[bwh: Backported to 3.2: adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/staging/hv/storvsc_drv.c