[SCSI] scsi_dh: Implement match callback function
authorHannes Reinecke <hare@suse.de>
Wed, 24 Aug 2011 08:51:15 +0000 (10:51 +0200)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 30 Aug 2011 19:28:30 +0000 (12:28 -0700)
commit6c3633d08acf514e2e89aa95d2346ce9d64d719a
treedcd1adaca314f4acb3f0979df75756b36b20e0ef
parent2a9ab40f74eb22cdf02e8f687bef7f3eac7f6cfa
[SCSI] scsi_dh: Implement match callback function

Some device handler types are not tied to the vendor/model
but rather to a specific capability. Eg ALUA is supported
if the 'TPGS' setting in the standard inquiry is set.
This patch implements a 'match' callback for device handler
which supersedes the original vendor/model lookup and
implements the callback for the ALUA handler.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/device_handler/scsi_dh.c
drivers/scsi/device_handler/scsi_dh_alua.c
include/scsi/scsi_device.h