Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: Valeriy Glushkov <gvvua at ua.fm>
To: spdk@lists.01.org
Subject: [SPDK] An issue with Persistent Reservation Replace Reservation
Date: Mon, 24 May 2021 14:40:56 +0300	[thread overview]
Message-ID: <op.03waqiy6v4n1vf@sam8> (raw)

[-- 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

                 reply	other threads:[~2021-05-24 11:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.03waqiy6v4n1vf@sam8 \
    --to=spdk@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox