summaryrefslogtreecommitdiffstats
path: root/drivers/staging/usbip/vhci.h
diff options
context:
space:
mode:
authorMax Vozeler <max@vozeler.com>2011-01-12 15:02:01 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-20 16:01:49 -0800
commitb92a5e23737172c52656a090977408a80d7f06d1 (patch)
tree1232bd42923d3cc4e31bafb8fa92c5d1d214be55 /drivers/staging/usbip/vhci.h
parent7606ee8aa33287dd3e6eb44c78541b87a413a325 (diff)
downloadop-kernel-dev-b92a5e23737172c52656a090977408a80d7f06d1.zip
op-kernel-dev-b92a5e23737172c52656a090977408a80d7f06d1.tar.gz
staging: usbip: vhci: give back URBs from in-flight unlink requests
If we never received a RET_UNLINK because the TCP connection broke the pending URBs still need to be unlinked and given back. Previously processes would be stuck trying to kill the URB even after the device was detached. Signed-off-by: Max Vozeler <max@vozeler.com> Tested-by: Mark Wehby <MWehby@luxotticaRetail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/usbip/vhci.h')
-rw-r--r--drivers/staging/usbip/vhci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/usbip/vhci.h b/drivers/staging/usbip/vhci.h
index 41a1fe5..2cfd00e 100644
--- a/drivers/staging/usbip/vhci.h
+++ b/drivers/staging/usbip/vhci.h
@@ -119,6 +119,9 @@ void rh_port_disconnect(int rhport);
void vhci_rx_loop(struct usbip_task *ut);
void vhci_tx_loop(struct usbip_task *ut);
+struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev,
+ __u32 seqnum);
+
#define hardware (&the_controller->pdev.dev)
static inline struct vhci_device *port_to_vdev(__u32 port)
OpenPOWER on IntegriCloud