From fe5458f66537db2116edb0ad1cfa8b9da5fb1ba3 Mon Sep 17 00:00:00 2001 From: thompsa Date: Fri, 3 Apr 2009 19:46:12 +0000 Subject: Add a how argument to root_mount_hold() so it can be passed NOWAIT and be called in situations where sleeping isnt allowed. --- sys/dev/usb/controller/usb_controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/usb/controller') diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index fc31f15..bea3e77 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -115,7 +115,7 @@ usb2_attach(device_t dev) } /* delay vfs_mountroot until the bus is explored */ - bus->bus_roothold = root_mount_hold(device_get_nameunit(dev)); + bus->bus_roothold = root_mount_hold(device_get_nameunit(dev), M_WAITOK); if (usb2_post_init_called) { mtx_lock(&Giant); -- cgit v1.1