Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2009 06:04:26 -0700
From:      Andrew Thompson <andy@fud.org.nz>
To:        Attilio Rao <attilio@freebsd.org>
Cc:        current <current@freebsd.org>, Hans Petter Selasky <hselasky@c2i.net>
Subject:   USB newbus livelock
Message-ID:  <1280352d0908180604s6b3bf050l9bde52f3c57a5a75@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi Attilio,


At the moment usb controller modules can not be unloaded due to a
newbus locking problem, roughly...

# kldunload ehci
syscall()
driver_module_handler()
  --> newbus xlock (subr_bus.c:4127)
usb_detach()
usb_proc_mwait()  <- wakeup, detach and drain the usb thread


[usb thread, detaching...]
usb_bus_detach()
 --> newbus xlock  (livelock, the kldunload process has this)

Hans has made some changes WRT this, perforce changes 167093 and
possibly 167087. Do you want to review this or maybe go for a similar
fix?


cheers,
Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1280352d0908180604s6b3bf050l9bde52f3c57a5a75>