public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Sarah Sharp <sarah.a.sharp@linux.intel.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Alan Stern <stern@rowland.harvard.edu>,
	Matthew Wilcox <willy@linux.intel.com>,
	linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org,
	USB Storage List <usb-storage@lists.one-eyed-alien.net>
Subject: Re: [PATCH v2] usb/uas: one only one status URB/host on stream-less connection
Date: Thu, 22 Dec 2011 17:07:20 -0800	[thread overview]
Message-ID: <20111223010720.GD18989@xanatos> (raw)
In-Reply-To: <20111222141525.GA19406@linutronix.de>

On Thu, Dec 22, 2011 at 03:15:25PM +0100, Sebastian Andrzej Siewior wrote:
> * Sarah Sharp | 2011-12-21 11:25:43 [-0800]:
> 
> >Hi Sebastian,
> Hi Sarah,
> 
> >The patch looks good (although I haven't tested it).  However, I think
> >you should move this chunk from one of your previous patches:
> >
> >@@ -449,7 +452,7 @@ static int uas_queuecommand_lck(struct scsi_cmnd *cmnd,
> >
> >        BUILD_BUG_ON(sizeof(struct uas_cmd_info) > sizeof(struct scsi_pointer));
> >
> >-       if (!cmdinfo->status_urb && sdev->current_cmnd)
> >+       if (sdev->current_cmnd)
> >                return SCSI_MLQUEUE_DEVICE_BUSY;
> >
> >into this patch, to keep the change to the status URB in one patch.
> 
> This isn't completely the chunk I have, it is:
> 
> -       if (!cmdinfo->status_urb && sdev->current_cmnd)
> +       if (devinfo->cmnd)
>                 return SCSI_MLQUEUE_DEVICE_BUSY;
> 
> So I replace sdev with devinfo. Not sure why status_urb is considered
> here at all since it has to be NULL because it is a new command. We
> should look at "default command pointer" to check if we have a untagged
> command pending.

Ah, ok, makes sense.

> >Also, do you have a git branch up for the UAS work somewhere?  We need
> >to figure out how to merge your bug fix patches with my bug fix patches
> >into one patchset.  It's probably easier if you send your current
> >patchset, or a pointer to your branch.
> 
> I did as you asked and applied your patches 1-3 and added my stuff on
> top. You can pull from:
> 
> git pull git://linutronix.de/users/bigeasy/linux for_sarah
> 
> The following changes since commit 5611cc4572e889b62a7b4c72a413536bf6a9c416:
> 
>   Linux 3.2-rc4 (2011-12-01 14:56:01 -0800)
> 
> are available in the git repository at:
>   git://linutronix.de/users/bigeasy/linux for_sarah
> 
> Sarah Sharp (3):
>       UAS: Re-add workqueue items if submission fails.
>       UAS: Use unique tags on non-streams devices.
>       UAS: Free status URB when we can't find the SCSI tag.
> 
> Sebastian Andrzej Siewior (3):
>       usb/uas: use unique tags for all LUNs
>       usb/uas: use scsi_host_find_tag() to find command from a tag
>       usb/uas: one only one status URB/host on stream-less connection
> 
>  drivers/usb/storage/uas.c |  157 +++++++++++++++++++++++++++++++++------------
>  1 files changed, 117 insertions(+), 40 deletions(-)
> 
> which is -rc4 based which is almost what I had for testing (a bunch of
> target patches are missing). I also prepared a gpg signed tag for you so
> if you have a recent version git you should be able to pull it via
>    git pull git://linutronix.de/users/bigeasy/linux uas_for_sarah
> 
> :)

Great!  I'll pull from that and start building on top of it.  Honestly
though, I won't have time for this until after the holidays.  I can ask
Greg to pull these as-is for 3.3 if you're really antsy to get them out.

Sarah Sharp

  reply	other threads:[~2011-12-23  1:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-20 15:01 [PATCH] usb/uas: one only one status URB/host on stream-less connection Sebastian Andrzej Siewior
     [not found] ` <20111220150126.GA29286-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2011-12-20 15:49   ` Alan Stern
2011-12-20 17:16     ` [PATCH v2] " Sebastian Andrzej Siewior
     [not found]       ` <20111220171621.GC29286-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>
2011-12-21 19:25         ` Sarah Sharp
2011-12-22 14:15           ` Sebastian Andrzej Siewior
2011-12-23  1:07             ` Sarah Sharp [this message]
2011-12-23  9:46               ` Sebastian Andrzej Siewior

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=20111223010720.GD18989@xanatos \
    --to=sarah.a.sharp@linux.intel.com \
    --cc=bigeasy@linutronix.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=usb-storage@lists.one-eyed-alien.net \
    --cc=willy@linux.intel.com \
    /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