Page MenuHomeFreeBSD

mmc: Use bus_topo_lock and taskqueue_bus while adding/removing child devices
ClosedPublic

Authored by jhb on Thu, Mar 6, 10:07 PM.
Tags
None
Referenced Files
F112606552: D49270.diff
Thu, Mar 20, 10:52 AM
Unknown Object (File)
Tue, Mar 11, 4:57 AM
Unknown Object (File)
Mon, Mar 10, 7:40 PM
Unknown Object (File)
Sat, Mar 8, 12:49 PM
Unknown Object (File)
Sat, Mar 8, 7:22 AM
Unknown Object (File)
Sat, Mar 8, 6:37 AM
Unknown Object (File)
Fri, Mar 7, 2:50 PM
Unknown Object (File)
Fri, Mar 7, 2:32 PM
Subscribers
None

Details

Summary

Some drivers held regular mutexes across some new-bus calls, instead
depend on bus_topo_lock to protect the relevant softc members. This
also fixes the bus_topo_lock to be explicit in these drivers rather
than relying on the implicit Giant from taskqueue_swi_giant, and it
avoids calling sleepable routines like device_probe_and_attach from an
swi context.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable