From: Douglas Gilbert <dougg@torque.net>
To: Christoph Hellwig <hch@lst.de>
Cc: James.Bottomley@steeleye.com, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] switch scsi upper driver probing to the driver model
Date: Sat, 17 May 2003 13:59:52 +1000 [thread overview]
Message-ID: <3EC5B3B8.9020308@torque.net> (raw)
In-Reply-To: <20030516182039.A7369@lst.de>
Christoph Hellwig wrote:
> Upper drivers now use the LDM ->probe/->remove callbacks and the
> core list code. Note that this means there is only one driver per
> scsi device and not multiple, e.g. you can't have sd _and_ sg for
> the same device.
Is that "_and_" symmetric? That is, can one have the sg
device in preference to the sd device? If so, how is
that selected?
> Personally I think that's not a problem anymore
> with the generic SG_IO in place, but if you scream loud enough I
> could come up with a hack that makes the sg nodes a property of the
> scsi midlayer instead of a LDM-style driver and we could get the
> old behaviour back.
Christoph,
This patch would have some interesting side effects:
- no generic interface (apart from SCSI_IOCTL_SEND_COMMAND)
for tape devices (st and osst). While the maintainers of
st and osst might like this, not all the user apps would :-)
- the SG_IO ioctl in the block level
- limits maximum transfer size to 65536 bytes
- does not support mmap-ed IO [and would need
something like a reserved buffer concept to do it]
- does not support direct IO
- needs work (debuggings)
- does not support async IO (either does SG_IO
in sg but it can be done other ways in sg)
- the extra ioctls that sg defines are either fudged
or missing. This might upset programs other than
cdrecord; cdparanoia comes to mind
It was my understanding that the device model has been
recently modified by Greg KH to cope with the dual nature
of the interface that sg causes. Evidently similar situations
occur elsewhere in the kernel.
Whether the sg driver is an upper level SCSI driver or
part of the mid level actually makes little difference.
The sgbind patch that I canvassed the other day
actually fits well into sg's functionality being subsumed
into the mid level with a single virtual device node
(e.g. /dev/scsi or /dev/scsibind ?) for access with each
open file descriptor getting its own state.
But then there is the problem of backward compatibility...
Doug Gilbert
next prev parent reply other threads:[~2003-05-17 3:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-16 16:20 [PATCH] switch scsi upper driver probing to the driver model Christoph Hellwig
2003-05-16 23:57 ` Mike Anderson
2003-05-17 2:25 ` Willem Riede
2003-05-17 7:16 ` Christoph Hellwig
2003-05-17 9:17 ` Christoph Hellwig
2003-05-17 16:35 ` Mike Anderson
2003-05-17 9:59 ` Kai Makisara
2003-05-17 15:08 ` Christoph Hellwig
2003-05-17 16:19 ` James Bottomley
2003-05-18 9:35 ` Kai Makisara
2003-05-17 3:59 ` Douglas Gilbert [this message]
2003-05-17 7:13 ` Christoph Hellwig
2003-05-19 19:02 ` Greg KH
2003-05-17 8:32 ` Jens Axboe
2003-05-17 12:52 ` Willem Riede
2003-05-19 21:38 ` Patrick Mansfield
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=3EC5B3B8.9020308@torque.net \
--to=dougg@torque.net \
--cc=James.Bottomley@steeleye.com \
--cc=hch@lst.de \
--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