storvsc: force discovery of LUNs that may have been removed.
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 16 Dec 2014 21:21:43 +0000 (13:21 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2015 14:44:26 +0000 (15:44 +0100)
commit34a716bc345ba06c34aa33d09536fcb607523818
treedef7a933326d96cb3415c0de1f7b75edeeeba4fe
parent2a09ed3d97ff8b5b377f86da9b9afd9ebd97b362
storvsc: force discovery of LUNs that may have been removed.

The host asks the guest to scan when a LUN is removed or added.
The only way a guest can identify the removed LUN is when an I/O is
attempted on a removed LUN - the SRB status code indicates that the LUN
is invalid. We currently handle this SRB status and remove the device.

Rather than waiting for an I/O to remove the device, force the discovery of
LUNs that may have been removed prior to discovering LUNs that may have
been added.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/storvsc_drv.c
This page took 0.025617 seconds and 5 git commands to generate.