]> git.karo-electronics.de Git - linux-beck.git/commit
storvsc: Use the specified target ID in device lookup
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 28 Jan 2016 02:22:45 +0000 (18:22 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 29 Jan 2016 03:25:48 +0000 (22:25 -0500)
commit98441221708a092eb6d3d05142cf842a95aba152
tree617306a30b925348806b31fcec96bd7d1b6a213a
parentd791a8c60e9cbd1c4fecbc5c86ff59c7ffe137e8
storvsc: Use the specified target ID in device lookup

The current code assumes that there is only one target in device lookup.
Fix this bug. This will alow us to correctly handle hot reomoval of
LUNs.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Alex Ng <alexng@microsoft.com>
Tested-by: Vivek Yadav <vyadav@microsoft.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/storvsc_drv.c