HomeFreeBSD

nvmecontrol: Use active nslist to enumerate namespaces

Description

nvmecontrol: Use active nslist to enumerate namespaces

Rather than probing all namespace IDs up to cdata.nn for the devlist
command, fetch the active namespace list and iterate over that. This
can be much quicker on Fabrics controllers which often advertise a
large cdata.nn value to support adding additional namespaces at
runtime.

Reviewed by: chuck
Reported by: Neven Z <nevenzfr@gmail.com>
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D47355

Details

Provenance
jhbAuthored on Tue, Nov 5, 1:28 AM
Reviewer
chuck
Differential Revision
D47355: nvmecontrol: Use active nslist to enumerate namespaces
Parents
rG326e20fc1252: nvmecontrol: Refactor devlist implementation
Branches
Unknown
Tags
Unknown