From: James Bottomley <James.Bottomley@SteelEye.com>
To: Mike Christie <mikenc@us.ibm.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>,
Matthew Wilcox <willy@debian.org>, Christoph Hellwig <hch@lst.de>,
iscsi -devel <linux-iscsi-devel@lists.sourceforge.net>,
David Wysochanski <davidw@netapp.com>,
"Surekha.PC" <surekhap@cisco.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [linux-iscsi-devel] Re: [PATCH RFC] replace ioctl for sysfs take 2
Date: 07 Sep 2004 11:35:18 -0400 [thread overview]
Message-ID: <1094571319.1716.108.camel@mulgrave> (raw)
In-Reply-To: <413D20F9.6000704@us.ibm.com>
On Mon, 2004-09-06 at 22:46, Mike Christie wrote:
> In that first target patch you sent it had the target dev's bus set to
> scsi_bus_type. That caused my confusion as to what the bus was for. I
> see the new patch with this removed. Nevermind.
er, yes, cut and paste error ...
> We just needed something to track the driver's scsi_hosts. It was also
> used becuase we used a struct device_driver to hang setup attributes
> (non iscsi related attrs needed to setup our driver's devices without an
> ioctl) off of like scsi_debug (this is why I asked about a single
> virtual bus for both of us to share).
Ah, OK, I see. So you mean add a bus to the scsi_host->shost_gendev.
That's certainly feasible. With clever matching we could get all LLDs
that wanted this functionality to add a dummy driver which they could
then use to traverse their attached hosts.
> Since we followed the suggestion to do a host per transport endpoint
> when we rmmod the driver we just need some way to loop over every
> scsi_host and free them up. We had a linked list of scsi_hosts.
> Christoph suggested a class or bus instead of the linked list, and had
> preferred the bus. Now you are suggesting to use a class. It wouldn't be
> ok to go back to the single host would it? In that case we would not
> need a class, bus, or linked list?
A host is the analogue of a bus. In iSCSI that's really the other end
point. Using abstractions incorrectly (like a single host for the
entire iSCSI system) is bound to end up with problems due to the concept
mismatch.
James
next prev parent reply other threads:[~2004-09-07 15:36 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <413557CB.8010008@cs.wisc.edu>
[not found] ` <20040901162042.GC26753@null.msp.redhat.com>
2004-09-06 14:32 ` [linux-iscsi-devel] Re: [PATCH RFC] replace ioctl for sysfs take 2 Christoph Hellwig
2004-09-06 16:33 ` Matthew Wilcox
2004-09-06 18:15 ` Mike Christie
2004-09-06 18:54 ` Mike Christie
2004-09-06 22:48 ` Mike Christie
2004-09-06 23:11 ` James Bottomley
2004-09-07 2:46 ` Mike Christie
2004-09-07 15:35 ` James Bottomley [this message]
2004-09-07 19:19 ` Scott M. Ferris
2004-09-07 20:42 ` James Bottomley
2004-09-07 21:05 ` Scott M. Ferris
2004-09-07 21:12 ` Mike Christie
2004-09-07 21:24 ` Scott M. Ferris
2004-09-07 21:33 ` James Bottomley
2004-09-07 21:37 ` Mike Christie
2004-09-07 22:05 ` James Bottomley
2004-09-07 22:40 ` Mike Christie
2004-09-07 22:57 ` Mike Christie
2004-09-08 10:27 ` Mike Christie
2004-09-07 23:34 ` James Bottomley
2004-09-08 9:19 ` Mike Christie
2004-09-08 14:53 ` James Bottomley
2004-09-07 21:14 ` James Bottomley
2004-09-08 2:33 ` Douglas Gilbert
2004-09-08 14:38 ` Randy.Dunlap
2004-09-08 18:11 ` Bryan Henderson
2004-09-09 0:40 ` Douglas Gilbert
2004-09-09 15:40 ` AJ Lewis
2004-09-07 15:24 ` AJ Lewis
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=1094571319.1716.108.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=davidw@netapp.com \
--cc=hch@lst.de \
--cc=linux-iscsi-devel@lists.sourceforge.net \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=mikenc@us.ibm.com \
--cc=surekhap@cisco.com \
--cc=willy@debian.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox