Skip to content

Commit 27d0242

Browse files
committed
Merge tag 'nvme-6.10-2024-06-05' of git://git.infradead.org/nvme into block-6.10
Pull NVMe fixes from Keith: "nvme fixes Linux 6.10 - Use reserved tags for special fabrics operations (Chunguang) - Persistent Reservation status masking fix (Weiwen)" * tag 'nvme-6.10-2024-06-05' of git://git.infradead.org/nvme: nvme: fix nvme_pr_* status code parsing nvme-fabrics: use reserved tag for reg read/write command
2 parents c462ecd + b1a1fdd commit 27d0242

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/nvme/host/fabrics.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val)
180180
cmd.prop_get.offset = cpu_to_le32(off);
181181

182182
ret = __nvme_submit_sync_cmd(ctrl->fabrics_q, &cmd, &res, NULL, 0,
183-
NVME_QID_ANY, 0);
183+
NVME_QID_ANY, NVME_SUBMIT_RESERVED);
184184

185185
if (ret >= 0)
186186
*val = le64_to_cpu(res.u64);
@@ -226,7 +226,7 @@ int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val)
226226
cmd.prop_get.offset = cpu_to_le32(off);
227227

228228
ret = __nvme_submit_sync_cmd(ctrl->fabrics_q, &cmd, &res, NULL, 0,
229-
NVME_QID_ANY, 0);
229+
NVME_QID_ANY, NVME_SUBMIT_RESERVED);
230230

231231
if (ret >= 0)
232232
*val = le64_to_cpu(res.u64);
@@ -271,7 +271,7 @@ int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val)
271271
cmd.prop_set.value = cpu_to_le64(val);
272272

273273
ret = __nvme_submit_sync_cmd(ctrl->fabrics_q, &cmd, NULL, NULL, 0,
274-
NVME_QID_ANY, 0);
274+
NVME_QID_ANY, NVME_SUBMIT_RESERVED);
275275
if (unlikely(ret))
276276
dev_err(ctrl->device,
277277
"Property Set error: %d, offset %#x\n",

drivers/nvme/host/pr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int nvme_sc_to_pr_err(int nvme_sc)
7777
if (nvme_is_path_error(nvme_sc))
7878
return PR_STS_PATH_FAILED;
7979

80-
switch (nvme_sc) {
80+
switch (nvme_sc & 0x7ff) {
8181
case NVME_SC_SUCCESS:
8282
return PR_STS_SUCCESS;
8383
case NVME_SC_RESERVATION_CONFLICT:

0 commit comments

Comments
 (0)