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
F132229436: D31381.diff
Wed, Oct 15, 12:22 AM
Unknown Object (File)
Sep 14 2025, 9:12 PM
Unknown Object (File)
Aug 27 2025, 9:09 PM
Unknown Object (File)
Aug 22 2025, 11:01 AM
Unknown Object (File)
Aug 7 2025, 3:58 PM
Unknown Object (File)
Aug 4 2025, 5:04 AM
Unknown Object (File)
Jul 20 2025, 5:59 PM
Unknown Object (File)
Jul 20 2025, 5:52 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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