Re: [PATCH 1/2 v5] usbnet: allow status interrupt URB to always be active

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

 



On Thu, Apr 11, 2013 at 7:14 PM, Oliver Neukum <oliver@xxxxxxxxxx> wrote:
>
> Sorry, I misunderstood.

No problem, :-)

>
> Task A                                  Task B                          queue
>
> queue work
>                                                 request a reset
>                                                                                         allocate memory and block
>                                                 cancel the work
>                                                                                         shit happened

If I understand the case correctly, the above deadlock can be avoided
by canceling rx/tx URBs at the end of pre_reset() or usbnet_disconnect(),
then memory can still be reclaimed in queue context since rx/tx is still
workable. Right?


Thanks,
-- 
Ming Lei
--
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