]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:27:58 +0000 (09:27 -0700)
commit791f153c5bea0636537ceb417bfea78f0f232d4f
tree1732be7baf856348fd83e19660639994f5e561d3
parent2a7c11208e542071eee2240dde98e1673f5c01d4
SCSI: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/storvsc_drv.c