[RFC PATCH] scsi_dh: allow 3rd party multipath drivers to scsi_dh_detach

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some scsi_dh modules are known to conflict with with 3rd party multipath
drivers (e.g. scsi_dh_emc conflicts with EMC PowerPath).

Allow 3rd party multipath drivers to programatically detach a scsi_dh
using the scsi_dh_detach() interface rather than require writing
'detach' to /sys/block/sdX/queue/dh_state

Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx>
 drivers/scsi/device_handler/scsi_dh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

[begs the question: why are _any_ of the scsi_dh symbols
EXPORT_SYMBOL_GPL?  Linux would benefit from more 3rd party use of
scsi_dh*.  As it stands, Linux is being held back from having better
default handling of multipath LUNs purely because 3rd parties may not
play nicely with scsi_dh* being attached]

diff --git a/drivers/scsi/device_handler/scsi_dh.c b/drivers/scsi/device_handler/scsi_dh.c
index 23149b9..a550de1 100644
--- a/drivers/scsi/device_handler/scsi_dh.c
+++ b/drivers/scsi/device_handler/scsi_dh.c
@@ -578,7 +578,7 @@ void scsi_dh_detach(struct request_queue *q)
 static struct notifier_block scsi_dh_nb = {
 	.notifier_call = scsi_dh_notifier
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photos]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

Add to Google Powered by Linux