Skip to content

Remove metadata transfer from Data Transfer 00b commands - #2145

Merged
axboe merged 1 commit into
axboe:masterfrom
sc108-lee:metadata
Sep 21, 2026
Merged

axboe merged 1 commit into
axboe:masterfrom
sc108-lee:metadata

Conversation

@sc108-lee

Copy link
Copy Markdown
Contributor

Per the NVMe spec, no-data commands (Data Transfer 00b) such as Write Zeroes, Write Uncorrectable, and Verify do not require a data or metadata transfer. Previously, cmd->metadata and cmd->metadata_len were still set for these commands whenever the namespace had metadata configured, regardless of the command's data transfer type. Restrict metadata assignment to commands that actually transfer data (read, write, compare, zns append) so that no-data commands no longer carry a stale metadata pointer/length.

Per the NVMe spec, no-data commands (Data Transfer 00b) such as
Write Zeroes, Write Uncorrectable, and Verify do not require a
data or metadata transfer. Previously, cmd->metadata and
cmd->metadata_len were still set for these commands whenever the
namespace had metadata configured, regardless of the command's
data transfer type. Restrict metadata assignment to commands that
actually transfer data (read, write, compare, zns append) so that
no-data commands no longer carry a stale metadata pointer/length.

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
@axboe
axboe merged commit 47c14c6 into axboe:master Sep 21, 2026
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址