[nfsv4] Re: OPEN_XOR_DELEGATION when there is existing OPEN stateid
Thomas Haynes <loghyr@gmail.com> Wed, 02 October 2024 05:24 UTC
Return-Path: <loghyr@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 43932C1519A9 for <nfsv4@ietfa.amsl.com>; Tue, 1 Oct 2024 22:24:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level:
X-Spam-Status: No, score=-2.109 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i9VB5jO5LcqW for <nfsv4@ietfa.amsl.com>; Tue, 1 Oct 2024 22:24:29 -0700 (PDT)
Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DF49CC151995 for <nfsv4@ietf.org>; Tue, 1 Oct 2024 22:24:29 -0700 (PDT)
Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-7e6d04f74faso415307a12.1 for <nfsv4@ietf.org>; Tue, 01 Oct 2024 22:24:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727846669; x=1728451469; darn=ietf.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=93GutNyeGzaDTfoPyKfedBmtmxqZNEESiVnI0GyPziU=; b=jQdyWLFXZC4oxyJXJObP6MHJvtcqwVqUDxNh122loZg3VHSQxEEVgmnp7tZRfdCGk6 VFyWHZaLUB0uCpbgVZ6d/VUxgpJetnVTSUxSYFnArqBLdVpz7vclqmqJ6wTMS8JxEJOK lewRpM/WiNMLTS01GosPPhera2IIMpQBAl/xQ9oo2QKnJSUghR0PT58NcY9bu6RCNWZO MSyH4yvUAuJDwe7bC0WNcv39eByj5ZxLLxDLComEFj8oXMIHT3y1pQNZhXHjmlXNHjO6 OkeCIsxRA3A8jp+VLAonKG5jSZesObqTlmoqKNMnahmlyLrIBncoI4qzD2tx4ooKQIPt HBqg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727846669; x=1728451469; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=93GutNyeGzaDTfoPyKfedBmtmxqZNEESiVnI0GyPziU=; b=JPW2M5FMbunZRupnPe9AIlX6xUAOkdGjabg+SINF1gOJ8Id3Qazo1Vhm/Df4xLYDgh 0llLsopHWaMTLYeQYrmL7fTIygGv4mCwHTXtOOHG5oSKrqmmHZLMGYL1NKmGaLJciTh/ oYDJJSPcs/S1AXoYpyZoTc+idiXEITdnnQgf6G5oCkg1s7Fqde8iFl42R3JPwiIfDc0m U3ZN5dEPNedC6D1V0UzEwz4tPlEacu5Zugx1pZSz/6xYdpmTJRhlGRrYClVGRiOUaiGQ RGHFEsajOsSmSupVbYw642TvXoPSEVUq954sFbhZBjq73JdnsKGPhkBxhdwMzngED0oM zCsA==
X-Gm-Message-State: AOJu0Yxa/ptVbVIV0MYHytMlhX2qi1XVPxMN6mE3MqTabTShZdAGbX+d PNIWXb6nTlrVo3I4hsEVjcJQaU3ye+46E28R7FEQODpkEKEJKhhlXETVow==
X-Google-Smtp-Source: AGHT+IGIxb5qNBuuxMCME1SnPvk7OB8m4wD7MwB8Vh3vdI1qHs83u2D64Bu9ekjTRqGrgRsjVDdw6Q==
X-Received: by 2002:a05:6a20:2d20:b0:1d5:377c:2244 with SMTP id adf61e73a8af0-1d63770a7c6mr3007943637.20.1727846669167; Tue, 01 Oct 2024 22:24:29 -0700 (PDT)
Received: from smtpclient.apple ([2601:647:5b00:bf9:11c8:dc19:b3a8:85bd]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b26538828sm8996351b3a.219.2024.10.01.22.24.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Oct 2024 22:24:28 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\))
From: Thomas Haynes <loghyr@gmail.com>
In-Reply-To: <6d1a1371de69d93a682f0c202669c46089033c67.camel@poochiereds.net>
Date: Tue, 01 Oct 2024 22:24:16 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <F61478EA-3B05-479D-92FA-486EAC52CF2D@gmail.com>
References: <6d1a1371de69d93a682f0c202669c46089033c67.camel@poochiereds.net>
To: Jeff Layton <jlayton@poochiereds.net>
X-Mailer: Apple Mail (2.3818.100.11.1.3)
Message-ID-Hash: OKZD4OPEZHKODD4CWREA2YNNVWHMPDBT
X-Message-ID-Hash: OKZD4OPEZHKODD4CWREA2YNNVWHMPDBT
X-MailFrom: loghyr@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-nfsv4.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: NFSv4 <nfsv4@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [nfsv4] Re: OPEN_XOR_DELEGATION when there is existing OPEN stateid
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/PrgMck3yZi8HwkBcMCpwbCGvURY>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Owner: <mailto:nfsv4-owner@ietf.org>
List-Post: <mailto:nfsv4@ietf.org>
List-Subscribe: <mailto:nfsv4-join@ietf.org>
List-Unsubscribe: <mailto:nfsv4-leave@ietf.org>
> On Oct 1, 2024, at 6:11 AM, Jeff Layton <jlayton@poochiereds.net> wrote: > > Another delstid question. Consider the following situation. All opens > have WANT_OPEN_XOR_DELEGATION set: > > 1/ Client opens a file r/o. Server doesn't assign a delegation, so an > open stateid (with seq=1) is returned. > > 2/ Client opens the file again for r/w. Server assigns a delegation and > skips updating the OPEN stateid's seqid and sending the result back to > the client. > > Is that wrong behavior? It seems like that would morph the open stateid > for this openowner without updating the client as to the new stateid. > The delegation does cover it in that case, but it seems less than > optimal if the client ends up returning that delegation later. > > If the client already holds an open stateid, should we ignore > WANT_OPEN_XOR_DELEGATION? > -- > Jeff Layton <jlayton@poochiereds.net> It seems to me we can’t break the upgrade, so we have to honor the WANT_OPEN_XOR_DELEGATION by returning an upgraded open stateid. I.e., if the client already has an open stateid and presents an WANT_OPEN_XOR_DELEGATION, then cannot return just a delegation. Either we just upgrade the existing open stateid or we upgrade it and also return the delegation. Likewise, if we had already returned a delegation stateid, we should just return a delegation stateid. Feel free to argue with me ….
- [nfsv4] OPEN_XOR_DELEGATION when there is existin… Jeff Layton
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Rick Macklem
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Rick Macklem
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Thomas Haynes
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Jeff Layton
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Jeff Layton
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Thomas Haynes
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Thomas Haynes
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Jeff Layton
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Rick Macklem
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Jeff Layton
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Rick Macklem
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Rick Macklem
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Thomas Haynes
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Rick Macklem
- [nfsv4] Re: OPEN_XOR_DELEGATION when there is exi… Rick Macklem