diff options
author | jimharris <jimharris@FreeBSD.org> | 2013-03-26 18:16:30 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2013-03-26 18:16:30 +0000 |
commit | a9d5ecb9a74370405eb97e70dd4c73e5f2ab9e6b (patch) | |
tree | d5d8a61ff30788f03e19030e133f2f8be7d30a2b | |
parent | a6ef3f1878d775eaa1f1ce8533bc94689e0a1f86 (diff) | |
download | FreeBSD-src-a9d5ecb9a74370405eb97e70dd4c73e5f2ab9e6b.zip FreeBSD-src-a9d5ecb9a74370405eb97e70dd4c73e5f2ab9e6b.tar.gz |
Make the DSM range count 0-based. Previously we were deallocating one more
LBA than we should have been.
Sponsored by: Intel
-rw-r--r-- | sys/dev/nvme/nvme_ns_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nvme/nvme_ns_cmd.c b/sys/dev/nvme/nvme_ns_cmd.c index f16168a..c77361a 100644 --- a/sys/dev/nvme/nvme_ns_cmd.c +++ b/sys/dev/nvme/nvme_ns_cmd.c @@ -96,7 +96,7 @@ nvme_ns_cmd_deallocate(struct nvme_namespace *ns, void *payload, cmd->nsid = ns->id; /* TODO: create a delete command data structure */ - cmd->cdw10 = num_ranges; + cmd->cdw10 = num_ranges - 1; cmd->cdw11 = NVME_DSM_ATTR_DEALLOCATE; nvme_ctrlr_submit_io_request(ns->ctrlr, req); |