public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Boaz Harrosh <bharrosh-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org>
To: Ramya Desai <ramya.desai-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Alan Stern
	<stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org>,
	USB list <linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Return of PENDING status to SCSI driver
Date: Mon, 15 Jun 2009 17:33:34 +0300	[thread overview]
Message-ID: <4A365BBE.3010708@panasas.com> (raw)
In-Reply-To: <3e7aae30906150707we781237o366950971d748b6f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 06/15/2009 05:07 PM, Ramya Desai wrote:
> On 6/15/09, Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org> wrote:
>> On Mon, 15 Jun 2009, Boaz Harrosh wrote:
>>
>>  > >> If you are using the existing USB mass storage infrastructure then
>>  > >>  it will not work. This is because all commands are issued from a
>>  > >>  thread per host, which does a synchronous execution of one command
>>  > >>  at a time. In fact it does not even have a Q, but a global one cmnd
>>  > >>  pointer per host. And therefor sets can_queue to 1.
>>  > >>
>>  > >>  Are you using the existing USB infrastructure?
>>  > >>
>>  > >>
>>  > >>  Boaz
>>  > >>
>>  > > I am replacing the default USB mass storage driver with the one I am
>>  > > developing. But I am using the default SCSI and USB stack provided by
>>  > > Linux.
>>  > >
>>  > > So is there any another way to make my driver asynchronous?
>>  > >
>>  > > -RD
>>  >
>>  > I was afraid so.
>>  >
>>  > There is a lot of code you will need to change in current USB storage stack
>>  > SCSI is built with native support for queuing, but not so USB-storage-stack.
>>
>>
>> Boaz:
>>
>>  It looks like you didn't read Ramya's reply to your last message.
>>  Ramya isn't keeping the USB storage "stack" -- it is being replaced by
>>  a new driver -- so there's no point talking about making changes to it.
>>
>>
>>  Alan Stern
>>
>>
> 
> I already have an array length of 10 for the bellow members.
>        struct scsi_cmnd        *srb;            /* current srb         */
>        unsigned int            tag;              /* current dCBWTag     */
> 

That's good

> I am maintaining an internal queue for the commands.
> My main problem is , I am not getting the next command in my USB
> storage driver ( My custom) , until the first command is done.
> How can I get the next command, while processing the first command?
> 
> -Ramya

Post the code you have missed something, I'll have a look
Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-06-15 14:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-12  9:29 Return of PENDING status to SCSI driver Ramya Desai
2009-06-12 11:32 ` Jeff Garzik
2009-06-12 12:54   ` Ramya Desai
2009-06-12 17:26     ` Stefan Richter
2009-06-14  9:16     ` Boaz Harrosh
2009-06-15 12:07       ` Ramya Desai
2009-06-15 12:26         ` Matthew Wilcox
2009-06-15 12:29         ` Boaz Harrosh
     [not found]           ` <4A363EB4.8000102-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org>
2009-06-15 14:01             ` Alan Stern
2009-06-15 14:07               ` Ramya Desai
     [not found]                 ` <3e7aae30906150707we781237o366950971d748b6f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-15 14:33                   ` Boaz Harrosh [this message]
2009-06-15 14:42                     ` Ramya Desai
     [not found]                       ` <3e7aae30906150742l18e74a8fua5f08686c2c76454-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-15 14:50                         ` Ramya Desai
     [not found]                           ` <3e7aae30906150750m6809aa87v35f739e0a72243d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-15 14:59                             ` Matthew Dharm
2009-06-15 14:59                         ` Alan Stern
2009-06-15 16:31                         ` Boaz Harrosh
     [not found]                           ` <4A36776C.5010208-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org>
2009-06-16 13:35                             ` Ramya Desai
2009-06-16 13:59                               ` Alan Cox
2009-06-16 14:27                               ` Boaz Harrosh
2009-06-16 14:39                                 ` James Bottomley
     [not found]                                 ` <4A37ABDC.4050308-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org>
2009-06-16 15:09                                   ` Ramya Desai
2009-06-16 15:22                                     ` Alan Stern
     [not found]                                     ` <3e7aae30906160809y32f0c8f6j3352cd1ec2bfe34a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-16 15:27                                       ` Boaz Harrosh
     [not found]                               ` <3e7aae30906160635g4d191a4exdb710554a349cac0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-06-16 15:13                                 ` Alan Stern
2009-06-15 17:19                       ` Jeff Garzik
2009-06-15 14:40                   ` Alan Stern
2009-06-15 14:42               ` Boaz Harrosh
     [not found]                 ` <4A365DCA.2030907-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org>
2009-06-15 14:49                   ` Alan Stern

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=4A365BBE.3010708@panasas.com \
    --to=bharrosh-c4p08nqkorlbdgjk7y7tuq@public.gmane.org \
    --cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ramya.desai-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.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