summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2010-09-23 04:58:02 +0000
committerjakemsr <jakemsr@openbsd.org>2010-09-23 04:58:02 +0000
commitaf76094e62e54c7561aa277339559ee225fd46f0 (patch)
tree88f7ccf88bb98f04244bebc46b787f80a6e0adf1 /sys/dev/usb/uhub.c
parentremove reference to msgs(1) (diff)
downloadwireguard-openbsd-af76094e62e54c7561aa277339559ee225fd46f0.tar.xz
wireguard-openbsd-af76094e62e54c7561aa277339559ee225fd46f0.zip
instead of running usb_explore() from individual kthreads for each
USB bus, make usb_explore() a usb_task. reduces races during normal USB device detach, since now usb_tasks and detach happen in the same process. ok yuo@, matthew@ helped with the task thread loop
Diffstat (limited to 'sys/dev/usb/uhub.c')
-rw-r--r--sys/dev/usb/uhub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index eb27e59053c..706e94db1c5 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhub.c,v 1.53 2010/09/21 12:25:34 sasano Exp $ */
+/* $OpenBSD: uhub.c,v 1.54 2010/09/23 04:58:02 jakemsr Exp $ */
/* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
@@ -596,7 +596,7 @@ uhub_intr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status)
if (status == USBD_STALLED)
usbd_clear_endpoint_stall_async(sc->sc_ipipe);
else if (status == USBD_NORMAL_COMPLETION)
- usb_needs_explore(sc->sc_hub);
+ usb_needs_explore(sc->sc_hub, 0);
else
DPRINTFN(8, ("uhub_intr: unknown status, %d\n", status));
}