[PATCH blktests] nvme/071: test reservation preempt with multiple hosts

Shin'ichiro Kawasaki shinichiro.kawasaki at wdc.com
Wed Oct 14 03:25:17 PDT 2026


On Oct 02, 2026 / 16:08, Daejun Park wrote:
> nvme/054 covers the reservation commands with a single host, so its
> preempt step can only exercise a reservation holder preempting itself.
> 
> Add a test that connects three hosts to one namespace and sends the
> Preempt and the Preempt and Abort actions of the Reservation Acquire
> command from the reservation holder and from a non-holder registrant,
> with PRKEY set to the key of another registrant, to the key of the
> holder, and to 0h.  After each command the test checks the reservation
> type and, for every registrant, its reservation key and whether it
> holds the reservation, as reported by the Reservation Report command.
> 
> The steps in which the reservation holder preempts another registrant
> or sends PRKEY 0h fail without the kernel patch "nvmet: fix preempt of
> another registrant by the reservation holder".

Thanks for the patch. I ran the new test case and confirmed it fails. Also, I
confirmed the kernel patch noted above avoids the failure. Good.

I think the patch is good enough to apply. Said that, I will wait for the kernel
side fix patch lands on the Linus master branch to avoid confusion by the test
case failure. I think the test case number 071 will need renumbering. I will do
that modification when I apply the patch.



More information about the Linux-nvme mailing list