Page MenuHomeFreeBSD

hyperv: scanning locking is using the bus mtx
ClosedPublic

Authored by imp on Sep 5 2021, 3:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 9:41 PM
Unknown Object (File)
Wed, Apr 3, 1:16 AM
Unknown Object (File)
Sun, Mar 31, 2:13 PM
Unknown Object (File)
Sun, Mar 31, 2:05 PM
Unknown Object (File)
Mar 10 2024, 11:36 PM
Unknown Object (File)
Feb 9 2024, 6:07 PM
Unknown Object (File)
Feb 5 2024, 10:30 PM
Unknown Object (File)
Jan 8 2024, 11:57 PM
Subscribers
None

Details

Summary

The scanning code uses Giant to coordinate its accesses to newbus as
well as to synchronize a little state within hyperv's vmbus. Switch to
the new bus_topo_* functions instead of referring to Giant explicitly.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41383
Build 38272: arc lint + arc unit

Event Timeline

imp requested review of this revision.Sep 5 2021, 3:35 AM
imp created this revision.

Looks good, but while at hyper-v I'd also do it for hv_pci_delete_device().

This revision is now accepted and ready to land.Nov 29 2021, 6:20 PM

Arguably, it is the strangest use of Giant from all code I ever see.

This revision was automatically updated to reflect the committed changes.