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)
Sun, Apr 6, 9:43 AM
Unknown Object (File)
Fri, Apr 4, 12:24 AM
Unknown Object (File)
Mon, Mar 31, 9:35 PM
Unknown Object (File)
Mar 24 2025, 9:08 AM
Unknown Object (File)
Mar 21 2025, 7:40 AM
Unknown Object (File)
Mar 21 2025, 4:30 AM
Unknown Object (File)
Mar 20 2025, 10:52 AM
Unknown Object (File)
Mar 11 2025, 4:57 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