* [SPDK] An issue with Persistent Reservation Replace Reservation
@ 2021-05-24 11:40 Valeriy Glushkov
0 siblings, 0 replies; only message in thread
From: Valeriy Glushkov @ 2021-05-24 11:40 UTC (permalink / raw)
To: spdk
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]
Hi All,
From the NVMe v1.4a Specification 8.8.2 Registering:
"A host may replace its reservation key without regard to its registration
status or current reservation key value by setting the Ignore Existing Key
(IEKEY) bit to '1' in the Reservation Register command."
But the recent SPDK code in lib/nvmf/subsystem.c that controls the
Reservation replacing is:
case SPDK_NVME_RESERVE_REPLACE_KEY:
if (!reg || (!iekey && reg->rkey != key.crkey)) {
SPDK_ERRLOG("No registrant or current key doesn't match "
"with existing registrant key\n");
status = SPDK_NVME_SC_RESERVATION_CONFLICT;
goto exit;
}
The code rejects replacements when a host is not registered at the time,
but set IEKEY=1.
I think it an issue in the SPDK NVMf implementation of Persistent
Reservation that should be fixed, isn't it?
--
Best regards,
Valeriy Glushkov
www.starwind.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-24 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-24 11:40 [SPDK] An issue with Persistent Reservation Replace Reservation Valeriy Glushkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox