Page MenuHomeFreeBSD

nvmf: Fix an off by one error when scanning active namespace IDs
ClosedPublic

Authored by jhb on Nov 1 2024, 3:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 8, 11:38 PM
Unknown Object (File)
Nov 24 2024, 11:26 AM
Unknown Object (File)
Nov 21 2024, 10:35 PM
Unknown Object (File)
Nov 19 2024, 2:59 PM
Unknown Object (File)
Nov 19 2024, 9:57 AM
Unknown Object (File)
Nov 18 2024, 3:39 AM
Unknown Object (File)
Nov 17 2024, 6:51 PM
Unknown Object (File)
Nov 17 2024, 12:31 PM
Subscribers
None

Details

Summary

The active namespace list query fetches namespaces greater than the
passed in namespace ID, not greater than or equal to the passed in
namespace ID. Thus, a multi-page request should start with the last
namespace ID from the previous page, not that ID plus 1.

While here, make use of NVME_GLOBAL_NAMESPACE_TAG instead of a magic
number to handle the edge case that the last namespace ID in a page is
the largest valid namespace ID.

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60342
Build 57226: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Nov 1 2024, 3:26 PM
jhb created this revision.
This revision is now accepted and ready to land.Nov 2 2024, 4:55 AM
jhb retitled this revision from nvmf: Fix an off by one error in the upper bound on active namespace IDs to nvmf: Fix an off by one error when scanning active namespace IDs.Nov 2 2024, 12:33 PM
jhb edited the summary of this revision. (Show Details)
This revision now requires review to proceed.Nov 2 2024, 12:34 PM
This revision is now accepted and ready to land.Nov 4 2024, 6:21 PM