diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-10-23 15:42:11 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2010-10-23 15:42:11 +0000 |
commit | 8e12f85560fc6cbe21ee1d99ef2a764d08702ed2 (patch) | |
tree | b9bbbae0787b3b58b834bb8bac476ea50fe8f4a2 /sys/dev/usb/if_rum.c | |
parent | 645084637a0c51eccc7292eb827eb5f5294adac8 (diff) |
create another kthread to run xfer abort tasks. xfer abort tasks cannot
be run from the generic task kthread, because xfers that need to be
aborted block newly queued tasks from running (i.e. the xfer to be aborted
blocks the abort of that task). as there are now three types of usb
tasks, add an argument to usb_init_task() and another member to struct
usb_task to specify the task type.
fixes boot hangs that are showing up because we now use usb tasks to
attach/detach usb devices.
Diffstat (limited to 'sys/dev/usb/if_rum.c')
-rw-r--r-- | sys/dev/usb/if_rum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c index 0cbff7282c6..ddffda0332d 100644 --- a/sys/dev/usb/if_rum.c +++ b/sys/dev/usb/if_rum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rum.c,v 1.90 2010/08/27 17:08:01 jsg Exp $ */ +/* $OpenBSD: if_rum.c,v 1.91 2010/10/23 15:42:09 jakemsr Exp $ */ /*- * Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini@free.fr> @@ -328,7 +328,7 @@ rum_attach(struct device *parent, struct device *self, void *aux) return; } - usb_init_task(&sc->sc_task, rum_task, sc); + usb_init_task(&sc->sc_task, rum_task, sc, USB_TASK_TYPE_GENERIC); timeout_set(&sc->scan_to, rum_next_scan, sc); sc->amrr.amrr_min_success_threshold = 1; |