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, Oct 4, 10:11 PM
Unknown Object (File)
Thu, Sep 25, 10:11 PM
Unknown Object (File)
Sep 10 2025, 1:04 PM
Unknown Object (File)
Sep 9 2025, 1:26 AM
Unknown Object (File)
Sep 7 2025, 6:18 AM
Unknown Object (File)
Sep 2 2025, 11:16 AM
Unknown Object (File)
Sep 2 2025, 8:34 AM
Unknown Object (File)
Aug 14 2025, 10:52 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