RE: [PATCH v.2] USB documentation: explain lifetime rules for unlinking URBs

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

 



On Mon, 26 Mar 2012, He, Alex wrote:

> +On the other hand, since usb_unlink_urb may end up calling the
> +completion handler, the handler must not take any lock that is held
> +when usb_unlink_urb is invoked.  The general solution to this problem
> +is to increment the URB's reference count while holding the lock, then
> +drop the lock and call usb_unlink_urb or usb_unlink_urb, and then
> 
> /\
> ||
> Hi Alan,
> Do you means "call usb_unlink_urb or usb_kill_urb," above?

Quite right, thanks for pointing it out.  I'll resubmit.

Alan Stern

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