This could be a little more complicated than I originally thought.
The first question is how exactly would people like to use these?
Internally from the driver, or do you also need to get at it from sg as
well? Attaching it to sg might confuse/annoy a lot of people as the
numbering scheme would be shifted, but it also implies the thing is
permanant rather than transient and a bunch of other things.
If these things were permanent, then I would venture a guess that
the select_queue_depths() functions with some drivers would get rather
confused if they encountered a device that didn't represent a physical
device and instead pointed to the HA itself. Maybe, maybe not - this is
one question mark. Hiding this device from the driver when calling
select_queue_depths() is possible, but it would complicate things
even more.
If I were to do anything soonish, I would tend to take a
conservative approach, and not create a permanent device structure, which
would sidestep all of the other issues. It would also imply that you
would be unable to use the thing from sg, of course. The main question is
whether this would be useful or not (it would solve the problem for gdth,
but I don't know what other people have in mind).
-Eric
"The world was a library, and its books were the stones, leaves,
brooks, grass, and the birds of the earth. We learned to do what only
a student of nature ever learns, and that was to feel beauty."
Chief Luther Standing Bear - Teton Sioux
On Fri, 31 Dec 1999, Eric Youngdale wrote:
> OK, works for me. I will try and get something in sometime soon - it
> shouldn't be hard. For now I have a couple of minor issues with the new
> queueing code that I am still sorting out, and this takes precedence.
>
> -Eric
>
> ----- Original Message -----
> From: "David S. Miller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, December 31, 1999 5:29 PM
> Subject: Re: gdth calls scsi_do_cmd() with an uninitialized
> Scsi_Devicestructure
>
>
> > Date: Thu, 30 Dec 1999 00:07:07 -0500 (EST)
> > From: Eric Youngdale <[EMAIL PROTECTED]>
> >
> > If there were a general need for queueing commands to the SCSI
> > ID for the HA itself, then I could incorporate something, but as
> > far as I can see gdth is the only driver doing this.
> >
> > Often times I have considered doing just this in some of the SCSI
> > drivers I maintain, but I never did it precisely because no generic
> > mechanism existed.
> >
> > I for one would encourage such a mechanism to be created.
> >
> > Later,
> > David S. Miller
> > [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]