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
F142093483: D53452.id165349.diff
Fri, Jan 16, 12:06 AM
Unknown Object (File)
Tue, Jan 6, 6:33 AM
Unknown Object (File)
Dec 9 2025, 2:13 PM
Unknown Object (File)
Dec 6 2025, 12:29 AM
Unknown Object (File)
Nov 25 2025, 5:13 PM
Unknown Object (File)
Nov 4 2025, 6:21 PM
Unknown Object (File)
Oct 31 2025, 2:23 PM
Unknown Object (File)
Oct 31 2025, 2:22 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