[PATCH blktests] nvme/054: fix nvme reservation preempt and clear operations
Chaitanya Kulkarni
chaitanyak at nvidia.com
Mon Aug 25 10:17:59 PDT 2025
On 8/22/25 08:00, Yi Zhang wrote:
> This patch fixes two issues in the NVMe reservation test:
> 1. Missing --prkey parameter for Preempt operation:
> According to the nvme-cli documentation, when using resv-acquire
> with --racqa=1 (Preempt), the --prkey parameter is required to
> specify which reservation key to preempt. Without this parameter,
> the command fails with "Invalid Field in Command" error on some
> NVMe controllers.
>
> 2. Redundant registration in Clear operation:
> After a reservation release with --rrela=0, the registration
> remains valid. The subsequent resv-register command attempts
> to register with the same key, causing a "Reservation Conflict"
> error. This redundant registration is unnecessary and should
> be removed.
>
> These issues were discovered during my nvme reservation test with
> the same steps on NetApp storage connected via NVMe/RDMA.
>
> Link:https://github.com/linux-blktests/blktests/issues/190
> Signed-off-by: Yi Zhang<yi.zhang at redhat.com>
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
-ck
More information about the Linux-nvme
mailing list