Re: [RFC 6/9] UAS: Kill anchored URBs for canceled SCSI commands.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 02, 2011 at 09:41:41PM +0100, Oliver Neukum wrote:
> Am Freitag, 2. Dezember 2011, 20:55:54 schrieb Sarah Sharp:
> >  drivers/usb/storage/uas.c |   43 ++++++++++++++++++++++++++++++++++++++++---
> >  1 files changed, 40 insertions(+), 3 deletions(-)
> > 
> > diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
> > index 2598cbf..f61de1f 100644
> > --- a/drivers/usb/storage/uas.c
> > +++ b/drivers/usb/storage/uas.c
> > @@ -144,19 +144,19 @@ static void uas_do_work(struct work_struct *work)
> >         list_replace_init(&uas_work_list, &list);
> >         spin_unlock_irq(&uas_work_lock);
> >  
> > +       spin_lock_irq(&uas_work_lock);
> >         list_for_each_entry_safe(cmdinfo, temp, &list, list) {
> >                 struct scsi_pointer *scp = (void *)cmdinfo;
> >                 struct scsi_cmnd *cmnd = container_of(scp,
> >                                                         struct scsi_cmnd, SCp);
> >                 err = uas_submit_urbs(cmnd, cmnd->device->hostdata, GFP_NOIO);
> 
> This must use GFP_ATOMIC

Fixed, thanks!

Sarah Sharp
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux