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)
Fri, Aug 14, 7:10 PM
Unknown Object (File)
Fri, Aug 14, 7:01 PM
Unknown Object (File)
Sat, Aug 8, 7:22 AM
Unknown Object (File)
Thu, Jul 30, 9:22 AM
Unknown Object (File)
Wed, Jul 29, 7:24 AM
Unknown Object (File)
Mon, Jul 27, 3:08 PM
Unknown Object (File)
Sun, Jul 26, 7:45 PM
Unknown Object (File)
Sun, Jul 26, 3:44 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