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.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.