]> git.baikalelectronics.ru Git - kernel.git/commit
cciss: Fix cciss SCSI rescan code to better notice device changes
authorscameron@beardog.cca.cpqcorp.net <scameron@beardog.cca.cpqcorp.net>
Sat, 20 Sep 2008 01:27:47 +0000 (18:27 -0700)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:18 +0000 (08:56 +0200)
commit5311342f0cdc3ba9a2c0b3ec5d4fce37ae5b1731
treebfe96fedd70cf56a9a7c1585bc7f5965c3fb47e3
parent6d5a0b27f754dc300dd3c80f546dde7f399e75a7
cciss: Fix cciss SCSI rescan code to better notice device changes

Fix cciss SCSI rescan code to better notice device changes.
If you hot-unplug a tape drive, then hot-plug a different
tape drive into the same slot in a storage enclosure,
the cciss driver wouldn't notice anything had changed, as
it was only looking at the LUN address and device type.
Now it looks at the inquiry page 0x83 device identifier,
and vendor and model strings as well.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss_scsi.c
drivers/block/cciss_scsi.h