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, Sep 4, 11:02 PM
Unknown Object (File)
Fri, Sep 4, 11:02 PM
Unknown Object (File)
Thu, Aug 27, 2:24 PM
Unknown Object (File)
Wed, Aug 26, 9:52 PM
Unknown Object (File)
Fri, Aug 14, 7:10 PM
Unknown Object (File)
Fri, Aug 14, 7:01 PM
Unknown Object (File)
Aug 8 2026, 7:22 AM
Unknown Object (File)
Jul 30 2026, 9:22 AM
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