HomeFreeBSD

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

Description

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

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

(cherry picked from commit 8ca384eb1d429aae866f53abfadafc71ab009dc6)

Details

Provenance
adam_fenn.ioAuthored on Aug 2 2021, 4:27 PM
kevansCommitted on Aug 26 2021, 5:28 PM
Parents
rG2cbe61a73d86: rtsold: make it work on if_vlan interfaces
Branches
Unknown
Tags
Unknown