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)
commit905bd78f2188da69e74966918e3d71df3dff382b
treebfe96fedd70cf56a9a7c1585bc7f5965c3fb47e3
parent79eb014578b79fcfb9d9e7dc979d1316079220aa
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