Re: [PATCH 5/5] uas: add locking

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

 



On Wednesday 19 September 2012 14:40:12 Gerd Hoffmann wrote:
> @@ -101,7 +103,10 @@ static void uas_do_work(struct work_struct *work)
>                 struct scsi_pointer *scp = (void *)cmdinfo;
>                 struct scsi_cmnd *cmnd = container_of(scp,
>                                                         struct scsi_cmnd, SCp);
> +               struct uas_dev_info *devinfo = (void *)cmnd->device->hostdata;
> +               spin_lock_irqsave(&devinfo->lock, flags);
>                 err = uas_submit_urbs(cmnd, cmnd->device->hostdata, GFP_NOIO);

You no longer can use GFP_NOIO

> +               spin_unlock_irqrestore(&devinfo->lock, flags);
>                 if (err) {
>                         list_del(&cmdinfo->list);
>                         spin_lock_irq(&uas_work_lock);

	Regards
		Oliver


--
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