All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc-hcNo3dDEHLuVc3sceRu5cw@public.gmane.org>
To: Chris Leech <cleech-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
	linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Adheer Chandravanshi
	<adheer.chandravanshi-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org>
Subject: Re: iscsi flashnode bus? Re: [RFC PATCH 2/4] iscsi: sysfs filtering by network namespace
Date: Fri, 22 May 2015 10:49:42 -0500	[thread overview]
Message-ID: <555F5016.60308@cs.wisc.edu> (raw)
In-Reply-To: <20150521204906.GF17115-r8IHplWLGbA5tHQWs+pTeqPFFGjUI2lm2LY78lusg7I@public.gmane.org>

On 5/21/15, 3:49 PM, Chris Leech wrote:
> On Wed, May 13, 2015 at 03:12:45PM -0700, Chris Leech wrote:
>> This makes the iscsi_host, iscsi_session, iscsi_connection, and
>> iscsi_endpoint transport class devices only visible in sysfs under a
>> matching network namespace.  The network namespace for all of these
>> objects is tracked in the iscsi_cls_host structure.
>
> I noticed that I didn't change iscsi_iface, but it should probably be
> handled the same was as iscsi_endpoint.
>
> I had intentionally skipped over all the flashnode stuff, until I had a
> chance to go back and take a closer look.
>
> Is there any particular reason why the flashnode support was implemented
> as a bus?  Following the pattern of everything else in
> scsi_transport_iscsi it should probably have been two classes
> (iscsi_flash_session and iscsi_flash_conn).  It's an issue as sysfs
> tagging only works on a per-class basis right now.
>


At some point upstream started telling us to stop using classes and use 
buses instead. It was around the time the fcoe's fcoe_sysfs stuff was 
being reviewed. In the middle of this mail is the comment about using 
buses instead of classes for fcoe:

http://www.spinics.net/lists/linux-scsi/msg58168.html

> I can see a couple of ways forward.
>
> 1) Extend sysfs tagging to work with device_type as well as class, and
>     use that for the two types on the flashnode "bus"

If we are supposed to be using buses instead of classes then I think is 
correct.

>
> 2) Change the flashnode code to use classes instead of a bus.
>     Keeping a single iscsi_flashnode class and continuing to use the two
>     device_types for sessions and connections should result in the only
>     visible change being /sys/bus/iscsi_flashnode moving to
>     /sys/class/iscsi_flashnode.

If we can use classes, this is fine with me.

>
> I prefer #2, but it looks like the open-iscsi tools would need to be
> updated (not all code paths follow the recommendations to ignore
> bus/class differences and check all subsystem locations).  And I don't
> know for sure that there aren't any other tools using this interface
> (it's only implemented for qla4xxx).
>

Ccing qlogic. I do not think any tools use it. I do not even know if 
anyone uses iscsiadm to manage it. Qlogic?


-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

  parent reply	other threads:[~2015-05-22 15:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-13 22:12 [RFC PATCH 0/4] Make iSCSI network namespace aware Chris Leech
2015-05-13 22:12 ` Chris Leech
     [not found] ` <1431555167-23995-1-git-send-email-cleech-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-05-13 22:12   ` [RFC PATCH 1/4] iscsi: create per-net iscsi nl kernel sockets Chris Leech
2015-05-13 22:12     ` Chris Leech
2015-05-13 22:12   ` [RFC PATCH 2/4] iscsi: sysfs filtering by network namespace Chris Leech
2015-05-13 22:12     ` Chris Leech
     [not found]     ` <1431555167-23995-3-git-send-email-cleech-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-05-21 20:49       ` iscsi flashnode bus? " Chris Leech
     [not found]         ` <20150521204906.GF17115-r8IHplWLGbA5tHQWs+pTeqPFFGjUI2lm2LY78lusg7I@public.gmane.org>
2015-05-22 15:49           ` Mike Christie [this message]
2015-05-13 22:12   ` [RFC PATCH 4/4] iscsi: set netns for iscsi_tcp hosts Chris Leech
2015-05-13 22:12     ` Chris Leech
2015-05-20 18:45   ` [RFC PATCH 0/4] Make iSCSI network namespace aware Andy Grover
     [not found]     ` <555CD657.6080004-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-05-21  9:04       ` Hannes Reinecke
2015-05-21 20:26     ` Chris Leech
2015-06-01  3:43   ` vaibhavkhanduja-Re5JQEeQqe8AvxtiuMwx3w
2015-05-13 22:12 ` [RFC PATCH 3/4] iscsi: make all netlink multicast " Chris Leech
2015-05-13 22:12   ` Chris Leech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=555F5016.60308@cs.wisc.edu \
    --to=michaelc-hcno3ddehluvc3sceru5cw@public.gmane.org \
    --cc=adheer.chandravanshi-h88ZbnxC6KDQT0dZR+AlfA@public.gmane.org \
    --cc=cleech-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.