linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Why using configfs as the only interface is wrong for a storage target
@ 2011-02-07 11:41 Bart Van Assche
  2011-02-07 11:53 ` Joel Becker
  2011-02-07 20:01 ` Nicholas A. Bellinger
  0 siblings, 2 replies; 16+ messages in thread
From: Bart Van Assche @ 2011-02-07 11:41 UTC (permalink / raw)
  To: Nicholas A. Bellinger; +Cc: linux-scsi, James Bottomley, Boaz Harrosh

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.

Regarding the SCSI-MIB (RFC 4455): using configfs makes it impossible
to ensure that the information in the scsiTgtPortEntry table is
current. If a HCA is plugged in, it won't appear in that table until
the user or some software issues an mkdir command. If a HCA is
removed, it won't appear in that table until an rmdir command is
issued. All these mkdir / rmdir commands are redundant since the
target core already knows which HCAs are available - a natural way to
implement a storage target driver that has to handle HCA hot-plugging
is to let it tell the storage target core about hot-plug events in the
bus add_one / remove_one callbacks.

Bart.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-09-16  7:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).