All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@suse.de>
To: Joel Becker <jlbec@evilplan.org>
Cc: Bart Van Assche <bvanassche@acm.org>,
	"Nicholas A. Bellinger" <nab@linux-iscsi.org>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	Boaz Harrosh <bharrosh@panasas.com>
Subject: Re: Why using configfs as the only interface is wrong for a storage target
Date: Mon, 07 Feb 2011 08:41:49 -0600	[thread overview]
Message-ID: <1297089709.3012.19.camel@mulgrave.site> (raw)
In-Reply-To: <20110207115347.GA7503@noexit>

On Mon, 2011-02-07 at 03:53 -0800, Joel Becker wrote:
> On Mon, Feb 07, 2011 at 12:41:18PM +0100, Bart Van Assche wrote:
> > On Fri, Feb 4, 2011 at 7:45 AM, Nicholas A. Bellinger
> > <nab@linux-iscsi.org> wrote:
> > > Please consider the following patch series for mainline target code.
> > > It consists of predominately configfs bugfixes uncovered with recent SLUB
> > > poison testing, and proper removal of legacy procfs target_core_mib.c code.
> > > Note that the complete set of fabric independent statistics (SCSI MIBs) and
> > > fabric dependent statistics will be included as native configfs group context
> > > 'per value' attribute series during the .39 time frame.
> > 
> > I'm still not convinced that using configfs in a storage target as the
> > only interface between kernel space and user space is a good idea.
> > While configfs may satisfy all the needs of an iSCSI target, the use
> > of configfs in combination with hot-pluggable HCAs is really awkward.
> > Whenever a HCA is plugged in, the user has to issue mkdir commands to
> > make these interfaces appear in configfs. And whenever a HCA is
> > removed, stale information will remain present in configfs until the
> > user issues an rmdir command. As we all know, it is not possible for a
> > storage target to make these directories appear / disappear
> > automatically in configfs because of basic configfs design choices.
> 
> 	Any configuration would have to be handled.  We have plenty of
> stuff that is handled by userspace hooks out of udev, etc.  That's a
> normal hotplug process.
> 	Essentially, you're not challenging Nick's use of configfs here,
> you're challenging his environment of setting up the target stack from
> userspace.

I think the overall philosophical point here, and it's a good one
because I've heard it from several sources, is that it's not possible to
separate configuration from status completely.  The classic example is
where the kernel has to validate and adjust config information, but the
storage specific one is where events alter the topology.  In either
case, the configfs tree gets out of sync with reality if the kernel does
the adjustment..  Just saying we have to use a user space tool to fix it
up is a bit of a cop out because the kernel has already adjusted its own
configuration, so getting userspace to work out what the kernel's done
and adjust configfs is a bit sub optimal.

James



  parent reply	other threads:[~2011-02-07 14:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-07 11:41 Why using configfs as the only interface is wrong for a storage target Bart Van Assche
2011-02-07 11:53 ` Joel Becker
2011-02-07 12:08   ` Bart Van Assche
2011-02-07 19:57     ` Nicholas A. Bellinger
2011-02-07 14:41   ` James Bottomley [this message]
2011-02-07 15:02     ` Emmanuel Florac
2011-02-07 20:09       ` Nicholas A. Bellinger
2011-02-07 21:38         ` Emmanuel Florac
2011-02-07 22:44           ` Joel Becker
2011-02-07 22:53             ` Joel Becker
2011-02-08  0:03             ` Nicholas A. Bellinger
2011-02-08  8:01             ` Emmanuel Florac
2011-02-07 15:10     ` Hannes Reinecke
2015-09-16  7:34       ` Sergiu
2011-02-07 18:45     ` Joel Becker
2011-02-07 20:01 ` Nicholas A. Bellinger

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=1297089709.3012.19.camel@mulgrave.site \
    --to=james.bottomley@suse.de \
    --cc=bharrosh@panasas.com \
    --cc=bvanassche@acm.org \
    --cc=jlbec@evilplan.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=nab@linux-iscsi.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.