[PATCH v2 1/5] nvme: mask the status before checking for Host Identifier Inconsistent

Nilay Shroff nilay at linux.ibm.com
Thu Dec 3 07:26:00 PST 2026


On 12/2/26 5:28 PM, Guixin Liu wrote:
> nvme_pr_resv_report() retries with the legacy data structure when the
> controller returns Host Identifier Inconsistent, but compares the raw
> status returned by nvme_execute_rq(). A controller that sets the DNR
> bit on that status never matches, so the fallback never happens and
> the reservation report fails against such controllers.
> 
> Mask the status with NVME_SCT_SC_MASK, like nvme_status_to_pr_err()
> already does.
> 
> Fixes: 5fd96a4e15de8 ("nvme: Add pr_ops read_keys support")
> Cc:stable at vger.kernel.org
> Signed-off-by: Guixin Liu<kanie at linux.alibaba.com>

Looks good to me:

Reviewed-by: Nilay Shroff <nilay at linux.ibm.com>



More information about the Linux-nvme mailing list