public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Mike Christie <mikenc@us.ibm.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>,
	"Scott M. Ferris" <sferris@acm.org>,
	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: 08 Sep 2004 10:53:50 -0400	[thread overview]
Message-ID: <1094655232.7222.69.camel@mulgrave> (raw)
In-Reply-To: <413ECEAD.3050409@us.ibm.com>

On Wed, 2004-09-08 at 05:19, Mike Christie wrote:
> I just meant that I am trying to get the iscsi transport class to have 
> common code across virtual and non virtual drivers. I was not striving 
> for virtual and non-virtual to alloc hosts alike. I was the one that 
> converted the iscsi driver to host per session and caused this mess :(

I'm not sure that's a good idea; virtual and physical drivers are very
different things and the transport classes may end up being different to
support their different needs.  I'd do the transport class for what you
have currently, which is a virtual driver, and when the physical one
comes along we'll see if it's possible to reuse pieces.  As long as the
code itself is nicely clean and modular this shouldn't be too hard; so
anywhere you're doing something that could easily be more generally
abstracted, do it.  Anywhere where an abstraction would be a contortion
of what you want to do, don't bother.

> The reason I kept asking below is becuase I misunderstood the resource 
> comment, and was unsure if I did the right thing and was supposed to 
> convert the driver back to a single host.

A host to the mid-layer is the place in which driver instance resources
are managed.  We expect to have things like an overall command limit per
host, and manage host and device blocking caused by resource issues.

For a physical iscsi driver, one host per card is easy and obvious; each
instance of the driver controlling a single card.  For a virtual iscsi
driver, the driver instances could be many things, but it seems logical
to me that your driver instances are per connection, thus you have one
host per iSCSI connection.  Its certainly possible to write a virtual
iSCSI driver where there's a single set of resources for everything, and
thus a single host, but I really don't think that would end up being a
very efficient driver.

James



  reply	other threads:[~2004-09-08 14:56 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
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 [this message]
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=1094655232.7222.69.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=sferris@acm.org \
    --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