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)
Fri, Mar 6, 8:54 AM
Unknown Object (File)
Thu, Mar 5, 10:54 PM
Unknown Object (File)
Mon, Feb 16, 1:07 PM
Unknown Object (File)
Feb 8 2026, 9:04 AM
Unknown Object (File)
Feb 8 2026, 8:43 AM
Unknown Object (File)
Feb 4 2026, 11:13 AM
Unknown Object (File)
Jan 31 2026, 5:35 AM
Unknown Object (File)
Jan 20 2026, 9:54 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 62806
Build 59690: arc lint + arc unit