- To: Hannes Reinecke <hare@xxxxxxx>, device-mapper development <dm-devel@xxxxxxxxxx>, James Bottomley <jbottomley@xxxxxxxxxxxxx>, Mike Snitzer <snitzer@xxxxxxxxxx>, linux-scsi@xxxxxxxxxxxxxxx
- Subject: Re: [dm-devel] [RESEND PATCH 2/3] dm mpath: add 'default_hw_handler' feature
- From: Alasdair G Kergon <agk@xxxxxxxxxx>
- Date: Wed, 11 Jul 2012 11:27:54 +0100
- In-reply-to: <4FEAA557.7050501@suse.de>
- Mail-followup-to: Hannes Reinecke <hare@xxxxxxx>, device-mapper development <dm-devel@xxxxxxxxxx>, James Bottomley <jbottomley@xxxxxxxxxxxxx>, Mike Snitzer <snitzer@xxxxxxxxxx>, linux-scsi@xxxxxxxxxxxxxxx
- Organization: Red Hat UK Ltd. Registered in England and Wales, number 03798903. Registered Office: 64 Baker Street, 4th floor, London, W1U 7DF.
- User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Jun 27, 2012 at 08:16:55AM +0200, Hannes Reinecke wrote:
> On 06/26/2012 08:32 PM, Mike Snitzer wrote:
> > When specifying the feature 'default_hw_handler' multipath will use
> > the currently attached hardware handler instead of trying to attach the
> > one specified during table load. If no hardware handler is attached the
> > specified hardware handler will be used.
> >
> > Leverages scsi_dh_attach's ability to increment the scsi_dh's reference
> > count if the same scsi_dh name is provided when attaching -- currently
> > attached scsi_dh name is determined with scsi_dh_attached_handler_name.
> >
> > Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx>
> > Tested-by: Babu Moger <babu.moger@xxxxxxxxxx>
> > Reviewed-by: Chandra Seetharaman <sekharan@xxxxxxxxxx>
> Looks good.
Maybe, but I'd like to see an inline explanation of what this confusing new
setting means and a better patch header that provides some motivation for this
change.
To my eyes, the word "default" is over-used here. If I *don't* specify the new
"default" flag, surely I'll get default behaviour, won't I, by definition? And
if I do specify it, I'm asking for default behaviour too, so isn't it
redundant?
Alasdair
--
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]