Page MenuHomeFreeBSD

devclass_alloc_unit: move "at" hint test to after device-in-use test
ClosedPublic

Authored by adam_fenn.io on Aug 2 2021, 12:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 24, 9:40 PM
Unknown Object (File)
Sat, Mar 21, 3:34 PM
Unknown Object (File)
Fri, Mar 20, 9:36 PM
Unknown Object (File)
Thu, Mar 19, 6:00 AM
Unknown Object (File)
Dec 26 2025, 5:27 PM
Unknown Object (File)
Dec 24 2025, 6:43 PM
Unknown Object (File)
Dec 21 2025, 4:22 AM
Unknown Object (File)
Dec 20 2025, 9:22 PM

Details

Summary

Only perform this expensive operation when the unit number is a
potential candidate (i.e. not already in use), thereby reducing device
scan time on systems with many devices, unit numbers, and drivers.

Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
X-NetApp-PR: #61

Diff Detail

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

Event Timeline

adam_fenn.io held this revision as a draft.

This looks good. Need someone to commit it?

This revision is now accepted and ready to land.Aug 2 2021, 2:30 PM
In D31381#707302, @imp wrote:

This looks good. Need someone to commit it?

I'll grab it