[PATCH blktests] nvme/054: fix nvme reservation preempt and clear operations

Shinichiro Kawasaki shinichiro.kawasaki at wdc.com
Tue Aug 26 06:52:44 PDT 2025


On Aug 22, 2025 / 11: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>

FYI, I applied this patch. Thanks!


More information about the Linux-nvme mailing list