]> www.infradead.org Git - users/jedix/linux-maple.git/commit
[SCSI] hpsa: make target and lun match what SCSI REPORT LUNs returns
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 19 Jan 2012 20:01:09 +0000 (14:01 -0600)
committerJoe Jin <joe.jin@oracle.com>
Tue, 15 May 2012 06:46:19 +0000 (14:46 +0800)
commit183d66ddcca8ed3882cadc288fcd0af6891a8198
tree919066a6b4320e81ca96756535ddc5ebca5f267e
parent6966e08a884409c0816a15fab19168b3921f5509
[SCSI] hpsa: make target and lun match what SCSI REPORT LUNs returns

Some distros have a "rescan-scsi-bus.sh" script which depends on
SCSI REPORT LUNs not reporting something different than what the
driver tells the kernel, even if the driver uses scan_start and
scan_finished methods of the SCSI host template to override the
usual SCSI midlayer discovery code.  Previously, 1 was added to
the LUN to make room to insert the RAID controller device at
LUN 0.  Now, the RAID controller is moved to bus 3, and 1 is no
longer added to the LUN.  However, SCSI REPORT LUNS on Smart Array
doesn't report physical devices like tape drives or auto-loaders
as it turns out, so those particular device types still won't match.
Generally the logical drives are reported first however, so at
least those should match.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
(cherry picked from commit bbef6c0ce8046114c07f5b6a62ce6a239503dd61)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/scsi/hpsa.c