From: James Bottomley <James.Bottomley@steeleye.com>
To: Markus Lidel <Markus.Lidel@shadowconnect.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Arjan van de Ven <arjanv@redhat.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: I2O enhancement for Adaptec management software
Date: 08 Apr 2004 07:29:40 -0500 [thread overview]
Message-ID: <1081427380.1885.4.camel@mulgrave> (raw)
In-Reply-To: <40751B18.9040403@shadowconnect.com>
On Thu, 2004-04-08 at 04:27, Markus Lidel wrote:
> The patch is for i2o_config, not for dpt_i2o! These are different
> drivers and have (from the architecture view) not much in common.
> dpt_i2o is a driver which let access to the disks entirely using the
> SCSI subsystem. The i2o subsystem uses i2o_core and i2o_block to access
> disks (which doesn't use SCSI at all), and also have an SCSI driver,
> which let access to each connected disk (i2o_scsi). But the i2o_scsi is
> not needed for normal disk access.
There appears to be some confusion: SG_IO is a *block* layer ioctl (it
happens to be in the slightly misnamed drivers/block/scsi_ioctl.c file,
but it is usable for all block devices).
> It's very funny, that i copied the patch 1:1 from dpt_i2o, where it is
> used too, and nobody ever complained about it :-D But don't understand
> me wrong, if there is a better way to do it, i'll try to do it this way.
Interfaces evolve. We have lots of examples in drivers of practices
that wouldn't be permitted if they showed up today, mainly because it
was the only way to accomplish the task when the driver was written.
> Than i have to move the patch to the i2o_scsi driver, because the
> i2o_scsi uses the SCSI subsystem already. But IMHO the i2o_config driver
> is better suited, cause the patch is only needed for the management
> software. One last question, could i use the SG list building function
> without using the SCSI layer?
Yes. All sg functions are in block. Without the SCSI framework, you
lose the mid-layer managing sglist allocation, so you'd have to do that
yourself, but every other non-scsi block driver also has that problem.
James
next prev parent reply other threads:[~2004-04-08 12:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-05 9:43 I2O enhancement for Adaptec management software Markus Lidel
2004-04-05 10:02 ` Arjan van de Ven
2004-04-05 10:05 ` Christoph Hellwig
2004-04-05 10:10 ` Arjan van de Ven
2004-04-05 10:12 ` Christoph Hellwig
2004-04-07 21:10 ` James Bottomley
2004-04-08 9:27 ` Markus Lidel
2004-04-08 12:29 ` James Bottomley [this message]
2004-04-08 13:14 ` Markus Lidel
2004-04-23 8:31 ` Markus Lidel
2004-04-05 10:18 ` Christoph Hellwig
2004-04-05 10:37 ` Markus Lidel
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=1081427380.1885.4.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=Markus.Lidel@shadowconnect.com \
--cc=arjanv@redhat.com \
--cc=hch@infradead.org \
--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