Page MenuHomeFreeBSD

newbus: Add locking around shutdown()
AcceptedPublic

Authored by imp on Nov 10 2025, 10:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 13, 8:10 PM
Unknown Object (File)
Tue, May 5, 1:58 PM
Unknown Object (File)
Sat, May 2, 10:50 AM
Unknown Object (File)
Mon, Apr 27, 11:17 AM
Unknown Object (File)
Apr 14 2026, 6:56 PM
Unknown Object (File)
Apr 14 2026, 6:11 AM
Unknown Object (File)
Apr 7 2026, 12:23 AM
Unknown Object (File)
Mar 27 2026, 3:25 PM
Subscribers

Details

Reviewers
jhb
markj
Summary

Pick up the bus_topo_lock() around call to device_shutdown and assert
that it's held in device_shutdown(). Normally, this path picks up Giant,
which is the current topo lock, so this should be a nop, but will become
a functional change when we move to a recursive lock that's not Giant.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68523
Build 65406: arc lint + arc unit