[SCSI] scsi_dh: Use scsi_devinfo functions to do matching of device_handler tables.
authorPeter Jones <pjones@redhat.com>
Thu, 6 Jan 2011 20:38:24 +0000 (15:38 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 24 Jan 2011 18:02:09 +0000 (12:02 -0600)
commit940d7faa4818f386fcdf1b7266ec7b62bf07a7d0
tree3a5acb8d4a9b0d6806724e71e6c7f9e23d39bfad
parent38a039be2e7bda32517642ecfce54c9317292a9c
[SCSI] scsi_dh: Use scsi_devinfo functions to do matching of device_handler tables.

Previously we were using strncmp in order to avoid having to include
whitespace in the devlist, but this means "HSV1000" matches a device
list entry that says "HSV100", which is wrong.  This patch changes
scsi_dh.c to use scsi_devinfo's matching functions instead, since they
handle these cases correctly.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/device_handler/scsi_dh.c
drivers/scsi/scsi_priv.h
include/scsi/scsi_device.h