From: Sergey Panov <sipan@sipan.org>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: What "tarnsport attributes" are really for?
Date: Tue, 31 Aug 2004 00:46:55 -0400 [thread overview]
Message-ID: <1093927615.32024.119.camel@sipan.org> (raw)
In-Reply-To: <1093874370.2036.12.camel@mulgrave>
On Mon, 2004-08-30 at 09:59, James Bottomley wrote:
> ... The goal is to create
> a library that encapsulates the service delivery subsystem (transport)
> part of SAM. ...
Then current scheme does not look sufficient. Does it mean we should
expect drastic changes in the near future?
> The ideal is not to have a transport API between the
> mid-layer and the transport classes but instead have the transport class
> provide autonomous services to the drivers, but I still don't know if
> this is possible.
If I am not mistaken, mid-layer is responsible only for adding extra
storage space in every new SCSI device and for initializing it
by calling shost->transportt->setup(). The second tasks is trivial
enough to be delegated to LLD. As for the extra space in every SCSI
device, it might be a bit excessive -- an array with 256 LUNs is just
one target device (FC or iSCSI device) and there is no need to replicate
its properties 256 times.
> The FC transport class is pretty vestigial at the moment, if you want to
> see the capabilities of doing this, look at the SPI one.here we've been
> moving the fairly complex DV code out of the drivers and into the
> transport class.
I can see a set of functions common to SPI LLDs. But those functions are
not aware of any SPI specific data (e.g. SPI transport attributes). I
also do not see there any support for keeping track of HBA transport
attributes.
When I asked my original question, I meant to ask if that transport
module would ever stop being a transport specific extension of the
mid-layer(extra attributes in every scsi_device) and turn into transport
specific extension of the LLD?
E.g. it looks like both iSCSI and FC LLDs are aware of the target device
way before mid-layer queries its LUNs. It seems logical to replace
current "extra attributes per device" scheme with some primitive data
base of transport endpoints. It might even have common, transport
neutral API (add_node, remove_node, for_each). Mid-layer SCSI device
will lose its transport extension, but might get a pointer to a generic
node/port/target. Transport module then would extend nodes to store
transport specific attributes and may add function calls to search that
DB by some of of the attributes.
I wonder, if change like one described above is too disruptive to make
its way into the kernel any time soon?
--
Sergey Panov <sipan@sipan.org>
Home
next prev parent reply other threads:[~2004-08-31 4:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-30 5:00 What "tarnsport attributes" are really for? Sergey Panov
2004-08-30 13:59 ` James Bottomley
2004-08-31 4:46 ` Sergey Panov [this message]
2004-08-31 11:49 ` James Bottomley
2004-09-01 0:50 ` What "transport " Sergey Panov
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=1093927615.32024.119.camel@sipan.org \
--to=sipan@sipan.org \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-scsi@vger.kernel.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