Page MenuHomeFreeBSD

newbus: Add more asserts that we hold the topo lock
AcceptedPublic

Authored by imp on Oct 29 2025, 6:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 8, 2:12 AM
Unknown Object (File)
Sat, Feb 7, 4:30 PM
Unknown Object (File)
Tue, Jan 27, 2:08 PM
Unknown Object (File)
Sun, Jan 25, 3:22 AM
Unknown Object (File)
Sat, Jan 24, 4:59 PM
Unknown Object (File)
Fri, Jan 16, 12:06 AM
Unknown Object (File)
Jan 6 2026, 6:33 AM
Unknown Object (File)
Dec 9 2025, 2:13 PM
Subscribers

Details

Reviewers
jhb
markj
Summary

Add more asserts that we hold the topo lock before callsing
devclass_find_internal. Also, take out the topo lock in the module
MOD_LOAD case for the root module.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Oct 29 2025, 6:08 PM
sys/kern/subr_bus.c
5241

You don't need the lock here too?

sys/kern/subr_bus.c
5241

Oh Yes. I thought this path was used on panic, but we turn off locking in that case, so I'll add this as a followup commit.

https://reviews.freebsd.org/D53677

This revision is now accepted and ready to land.Nov 11 2025, 2:13 PM