From: James Smart <James.Smart@Emulex.Com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
hch@infradead.org, dougg@torque.net, jens.axboe@oracle.com,
linux-scsi@vger.kernel.org
Subject: Re: SMP pass through interface via bsg
Date: Mon, 02 Apr 2007 09:45:05 -0400 [thread overview]
Message-ID: <461108E1.9070405@emulex.com> (raw)
In-Reply-To: <1175486263.27675.11.camel@mulgrave.il.steeleye.com>
James Bottomley wrote:
>> -- each SAS object (host, device, expander, etc) has the own bsg
>> device
>
> I think so; probably attached via the transport class.
FYI - I understand the idea of a bsg device per object, but really, for
something that is used rarely, it's a bunch of overhead. Objects, data
structures, etc - more udev/kobject mgmt.... I believe I prefer the
approach of a shared distribution point - e.g. one bsg device at the
transport globally, or perhaps one at the host (actually the outbound
port aka host/channel) supporting the transport - followed by headers
in the messages that direct flow after that. This kinda follows the
model we have today for I/O - w/ queuecommand for the host, and
addressing in the SCSI command.
Additionally, I've always had some concern that we had to create an
object for everything in the SAN (every phy!), and have that view replicated
per host (for multi-initiator/multi-path SANs). I always believed there
was some sets of things that you would want to talk to that just doesn't
justify a new object (for example - do we start talking to process associators
in FC ?). Another reason to move toward a transport-specific addressing
header.
My other concern with using bsg and the i/o path for transport management
functions is they compete with i/o for things like the can_queue values.
Should they ? Should they have higher priority ?
> I'd really rather not go this route unless the one device per object
> approach becomes untenable.
Understood, but building things until they topple is not a great idea
as there will be back-ward compatibility issues w/ user-space/sysfs and
the tools built around it. If you start with the shared distribution
point, you can always support both (eventually) if its a good idea.
Harder to do that in the reverse if it's toppling.
>> The patch adds a hook into sas transport class. sas_host_setup calls
>> bsg_register_queue. Then, the request_fn calls smp_execute_task to
>> send a smp request and get the response. It doesn't look good to link
>> the sas transport class with libsas. In addition, the mpt driver
>> handles smp request/response in a very different way.
>>
>> Any suggestion to bind SMP pass through via bsg to aic94xx and mpt
>> cleanly?
>
> bind in the transport class, not the driver ...
Agree - the trick for libsas is to get an interface into the driver that
both drivers can support.
-- james s
next prev parent reply other threads:[~2007-04-02 13:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-02 2:49 SMP pass through interface via bsg FUJITA Tomonori
2007-04-02 3:57 ` James Bottomley
2007-04-02 12:43 ` FUJITA Tomonori
2007-04-02 16:02 ` James Bottomley
2007-04-02 16:27 ` FUJITA Tomonori
2007-04-02 16:43 ` FUJITA Tomonori
2007-04-02 17:01 ` James Bottomley
2007-04-02 17:54 ` FUJITA Tomonori
2007-04-02 18:12 ` Jens Axboe
2007-04-02 18:32 ` Mike Christie
2007-04-02 18:30 ` Jens Axboe
2007-04-15 17:14 ` Boaz Harrosh
2007-04-02 18:55 ` FUJITA Tomonori
2007-04-02 13:45 ` James Smart [this message]
2007-04-02 15:47 ` Douglas Gilbert
2007-04-02 17:10 ` James Bottomley
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=461108E1.9070405@emulex.com \
--to=james.smart@emulex.com \
--cc=James.Bottomley@SteelEye.com \
--cc=dougg@torque.net \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hch@infradead.org \
--cc=jens.axboe@oracle.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 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.