diff options
author | Peter Jones <pjones@redhat.com> | 2011-01-06 15:38:24 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-01-24 12:02:09 -0600 |
commit | 940d7faa4818f386fcdf1b7266ec7b62bf07a7d0 (patch) | |
tree | 3a5acb8d4a9b0d6806724e71e6c7f9e23d39bfad /drivers/scsi/scsi_priv.h | |
parent | 38a039be2e7bda32517642ecfce54c9317292a9c (diff) | |
download | blackbird-op-linux-940d7faa4818f386fcdf1b7266ec7b62bf07a7d0.tar.gz blackbird-op-linux-940d7faa4818f386fcdf1b7266ec7b62bf07a7d0.zip |
[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>
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r-- | drivers/scsi/scsi_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index ce9e0adc8df8..9868afdb24e2 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h @@ -45,6 +45,7 @@ static inline void scsi_log_completion(struct scsi_cmnd *cmd, int disposition) enum { SCSI_DEVINFO_GLOBAL = 0, SCSI_DEVINFO_SPI, + SCSI_DEVINFO_DH, }; extern int scsi_get_device_flags(struct scsi_device *sdev, |