]> git.baikalelectronics.ru Git - kernel.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)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 9 Oct 2012 11:28:58 +0000 (12:28 +0100)
commit707c2463bd28339625f0e59ed341e7cb13dd964d
tree2a16bba3a1d7d25d6e7a0cfdf4aa24d865efaeca
parent4fae19fb16c781d10b8690d2d94208bf9794337c
[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