Re: [PATCH 1/3] scsi_dh: Add modalias support for SCSI targets

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

 



On Tue, 2009-03-17 at 18:36 -0700, Chandra Seetharaman wrote:
> From: Peter Jones <pjones@xxxxxxxxxx>
> 
> This patch allows the use of modaliases on scsi targets to correctly
> load scsi device handler modules when the devices are found.
> 
> Signed-off-by: Peter Jones <pjones@xxxxxxxxxx>
> Signed-off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx>

I have to say this is a bit icky.

overloading the modalias type like this produces several nasty effects:

     1. You don't actually care about type for any of the scsi_dh
        handlers, so they all have it as a useless extra field
     2. TYPE_ANY is a bogus (non SAM) definition ... I suppose it's
        unlikely ever to clash, but you never know
     3. scsi_dh handlers would now get loaded on *any* system ...
        regardless of whether it's using multipathing or not ... that's
        going to cause problems with other multi path solutions, I bet.

Why not use a separately defined module alias for this ... and then
program udev to understand it and do the loading only if multipath is
actually present?  I think we might have to add the INQUIRY strings to
the uenv for this, but it would be a much more elegant solution.

James


--
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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux