]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/scsi/ipr.c
[SCSI] ipr: Disk array rescanning fix
authorbrking@us.ibm.com <brking@us.ibm.com>
Tue, 1 Nov 2005 23:00:11 +0000 (17:00 -0600)
committerJames Bottomley <jejb@mulgrave.(none)>
Sun, 6 Nov 2005 18:59:48 +0000 (12:59 -0600)
commit11cd8f120173a707e9ed7b78f7af8cde5a1ebb90
tree3e2fe64fc9a3cebb932364253d4d7fb71946c25e
parentd6933df97a486d9c73a6bb4fed75154343c8638f
[SCSI] ipr: Disk array rescanning fix

IPR RAID arrays show up on a virtual scsi bus, with a scsi bus number
of 255, which is generated by the adapter microcode. For the initial
scan of the host, we manually scan this bus since it does not obey
SAM in regards to sparse LUNs and the disk array devices do not have
a consistent product id to use scsi core's blacklist. If /proc/scsi/scsi
or sysfs is used to delete one of these devices, the device will not
be able to get added back by rescanning the host since scsi core
will see ipr's max_channel as 4, rather than 255. Update max_channel
after the initial scan so that ipr raid arrays can get re-added
if they get deleted.

Signed-off-by: Brian King <brking@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/ipr.c