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)
Tue, Nov 25, 5:13 PM
Unknown Object (File)
Tue, Nov 4, 6:21 PM
Unknown Object (File)
Oct 31 2025, 2:23 PM
Unknown Object (File)
Oct 31 2025, 2:22 PM
Unknown Object (File)
Oct 31 2025, 2:18 PM
Unknown Object (File)
Oct 31 2025, 12:56 AM
Unknown Object (File)
Oct 31 2025, 12:56 AM
Unknown Object (File)
Oct 30 2025, 7:57 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.Tue, Nov 11, 2:13 PM