All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] qla2xxx: Add SysFS hook for FC-NVMe autoconnect
       [not found]             ` <824ea768-5397-30c0-6fb4-85420ae41476@suse.de>
@ 2018-11-15 16:43               ` Ewan D. Milne
  0 siblings, 0 replies; only message in thread
From: Ewan D. Milne @ 2018-11-15 16:43 UTC (permalink / raw)


On Thu, 2018-11-15@13:52 +0100, Hannes Reinecke wrote:
> On 11/14/18 6:13 PM, Ewan D. Milne wrote:
> > On Tue, 2018-11-13@09:49 -0800, Bart Van Assche wrote:
> > > On Tue, 2018-11-13@17:38 +0000, Madhani, Himanshu wrote:
> > > > On Nov 13, 2018,@6:23 AM, Bart Van Assche <bvanassche@acm.org> wrote:
> > > > > On Tue, 2018-11-13@01:02 +0000, Madhani, Himanshu wrote:
> > > > > > I see other drivers also use similar information populated for NVMe
> > > > > > Connection at boot time.
> > > > > 
> > > > > Hi Himanshu,
> > > > > 
> > > > > Which other drivers are you referring to?
> > > > > 
> > > > > Thanks,
> > > > > 
> > > > > Bart.
> > > > 
> > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/dri
> > > > vers/scsi/lpfc/lpfc_attr.c
> > > 
> > > Hello James,
> > > 
> > > Please either move the information exported by lpfc_nvme_info_show() into
> > > debugfs or split the information exported by that function into multiple
> > > sysfs attributes. Otherwise you will get flamed by Greg KH as soon as he
> > > encounters that code because of not following the rules explained in
> > > Documentation/filesystems/sysfs.txt.
> > > 
> > > Bart.
> > 
> > Better yet, is there some way we could get at least the connection
> > information needed for discovery moved into the NVMe/FC transport
> > layer so that we don't need to have separate implementations that
> > have to be parsed?
> > 
> 
> Sigh.
> 
> It's already been solved, there's no need for this attribute.
> 
> nvme-fc already sends a uevent whenever a new nvme rport is attached,
> (check nvme_fc_register_remoteport()->nvme_fc_signal_discovery_scan().
> 
> James Smart added a sysfs entry for retriggering these uevents, and I've 
> posted a set of scripts (... at least I think I did :-) utilizing those.
> 
> Please do _NOT_ do this; better rely on common mechanisms here.
> 
> And please, next time please cc linux-nvme so that we can track it better.
> 
> Cheers,
> 
> Hannes

So, the uevent can take care of the discovery mechanism, however there
are other reasons why one would want to be able to know e.g. what the
WWPNs of the Initiator & Target ports of the NVMe connections are.
For example, we would typically want to capture this information when
troubleshooting a system remotely.  There are also SAN test environments
that have a need for this information, which is one of the reasons
for the original patch posting.  I don't think it matters too much how
we do it, but the information is needed somehow.

I suppose a udev rule could put the information into a file, but that
seems awkard, and the infomation neeeded is in kernel objects, so why
not make it visible?

The uevent is of course necessary as it signifies an event, but the
desired info here is the *state*.

-Ewan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-15 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20181112214017.11218-1-himanshu.madhani@cavium.com>
     [not found] ` <1542060403.8992.3.camel@acm.org>
     [not found]   ` <4AF60723-8D50-47B5-B347-07D022E8ADC9@cavium.com>
     [not found]     ` <1542118997.192870.0.camel@acm.org>
     [not found]       ` <7FC9DAE5-8E21-43D8-9624-3B7764B2B392@cavium.com>
     [not found]         ` <1542131346.192870.9.camel@acm.org>
     [not found]           ` <74e3efc2e8442bd7c1546b2bcf0e4c8f46365c67.camel@redhat.com>
     [not found]             ` <824ea768-5397-30c0-6fb4-85420ae41476@suse.de>
2018-11-15 16:43               ` [PATCH] qla2xxx: Add SysFS hook for FC-NVMe autoconnect Ewan D. Milne

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.