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 18, 4:26 PM
Unknown Object (File)
Sun, Jul 12, 4:24 AM
Unknown Object (File)
Sat, Jul 11, 12:42 AM
Unknown Object (File)
Fri, Jul 10, 3:55 AM
Unknown Object (File)
Mon, Jul 6, 9:12 PM
Unknown Object (File)
Mon, Jun 22, 5:29 PM
Unknown Object (File)
Jun 20 2026, 12:22 AM
Unknown Object (File)
Jun 18 2026, 11:17 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