USB: extend poisoning to anchors
this extends the poisoning concept to anchors. This way poisoning will work with fire and forget drivers. Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
55b447bf79
commit
6a2839bedc
@@ -1135,6 +1135,7 @@ struct usb_anchor {
|
||||
struct list_head urb_list;
|
||||
wait_queue_head_t wait;
|
||||
spinlock_t lock;
|
||||
unsigned int poisoned:1;
|
||||
};
|
||||
|
||||
static inline void init_usb_anchor(struct usb_anchor *anchor)
|
||||
@@ -1462,6 +1463,7 @@ extern void usb_kill_urb(struct urb *urb);
|
||||
extern void usb_poison_urb(struct urb *urb);
|
||||
extern void usb_unpoison_urb(struct urb *urb);
|
||||
extern void usb_kill_anchored_urbs(struct usb_anchor *anchor);
|
||||
extern void usb_poison_anchored_urbs(struct usb_anchor *anchor);
|
||||
extern void usb_unlink_anchored_urbs(struct usb_anchor *anchor);
|
||||
extern void usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor);
|
||||
extern void usb_unanchor_urb(struct urb *urb);
|
||||
|
Reference in New Issue
Block a user