Page MenuHomeFreeBSD

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

Authored by jhb on Mar 6 2025, 10:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 5, 7:19 AM
Unknown Object (File)
Sat, Jul 5, 6:16 AM
Unknown Object (File)
Mon, Jun 30, 7:50 PM
Unknown Object (File)
Sat, Jun 21, 3:19 PM
Unknown Object (File)
Sat, Jun 21, 10:31 AM
Unknown Object (File)
Sat, Jun 21, 4:12 AM
Unknown Object (File)
Thu, Jun 19, 3:20 PM
Unknown Object (File)
Sun, Jun 15, 9:04 AM
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