]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] hpsa: fix physical device lun and target numbering problem
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Tue, 9 Aug 2011 13:18:01 +0000 (08:18 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 26 Aug 2011 19:52:39 +0000 (12:52 -0700)
commitbaab82a692aa287df29ea30641afc1abf70fcd9d
tree0c1f3cc68e87cecb1393f4ed09fb78edc593995f
parentec9bfcc004fceeb41324c62be94e65a9f906fcaf
[SCSI] hpsa: fix physical device lun and target numbering problem

If a physical device exposed to the OS by hpsa
is replaced (e.g. one hot plug tape drive is replaced
by another, or a tape drive is placed into "OBDR" mode
in which it acts like a CD-ROM device) and a rescan is
initiated, the replaced device will be added to the
SCSI midlayer with target and lun numbers set to -1.
After that, a panic is likely to ensue.  When a physical
device is replaced, the lun and target number should be
preserved.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c