[nfsv4] Re: RFC: new MUTEX_BEGIN/MUTEX_END operations

Jeff Layton <jlayton@poochiereds.net> Tue, 20 August 2024 11:50 UTC

Return-Path: <jlayton@poochiereds.net>
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 36425C151096 for <nfsv4@ietfa.amsl.com>; Tue, 20 Aug 2024 04:50:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=poochiereds-net.20230601.gappssmtp.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 VNXzg4lmGn6m for <nfsv4@ietfa.amsl.com>; Tue, 20 Aug 2024 04:49:58 -0700 (PDT)
Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) (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 CC8AEC14F713 for <nfsv4@ietf.org>; Tue, 20 Aug 2024 04:49:58 -0700 (PDT)
Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-e02b79c6f21so5791475276.2 for <nfsv4@ietf.org>; Tue, 20 Aug 2024 04:49:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poochiereds-net.20230601.gappssmtp.com; s=20230601; t=1724154597; x=1724759397; darn=ietf.org; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:to:from:subject:message-id:from:to:cc :subject:date:message-id:reply-to; bh=e4MfQCdi2+XYrKwtob90dRZrIS9+WFFMvaAHZgNuMYI=; b=aPFgNizjsNbd+kKYqzKdmvYT2VmQt7IDgrYa9P98yXXS5e0lP74rCI6fhJ2FLz20Vr 3yZbrE1WSGwsEMBbGjJCWqmo6wNW8YSbqEij5+8o6GtZ+AzTwCBcXhqszKAx3Me3scw5 emA8FfvCc4//jtfif5ATrb2EDgi8wlYOrRaz03EO3RvBJZuEnSHkAppTB1yFTmG7V2+H TB3kwDRa9RPFYvZp+UAke4YxR8fbTp7ywuie3uULjrHzH1MF5mrdrmvdvQVSX69+zWZ9 iXP7Q9IoKaxGMHTJuumYa3iaN9gDdL8mKGPmYEINQaswM+tt5ZPICy+nZz+BUqBHUpxh zKMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724154597; x=1724759397; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e4MfQCdi2+XYrKwtob90dRZrIS9+WFFMvaAHZgNuMYI=; b=XDq2KAe/+RHtr6M+Zt28m7V5Dbtq8GGTTrahRwbghgI0asoFPqQa1+fNhgGEkzteEH vH77QPRpyJphgM0cS5NFNxbZ21j25u5czmaKz2FSQEga4IfhKzFmTRFREeeeMI0GpFLg 8aGiG3QGEu5cgFMbMnWU6ZTSj7FGqD9NkYgFnHCct9H/q7jcT2opG+6IEZBkH2uQTL8O Ub0Tg6x48Fey/3UYt8e4J+VSWjkgl1+SCgHajD3MoF8WGcbxSWcXU4K9o1iJQjnm0uVp 6TYe1EecBDLtdMrGfBWYVwCOeVDFJ6mKNLzzMAnOWSWwt9o1XFxyszbzSQxSrshu99dt 2ugA==
X-Forwarded-Encrypted: i=1; AJvYcCVPdCXBEPGX6g7LRBKQH1DbGfryIeSJOhquPXjc5ThcnU2uMv7ufMryw3jBRdO8iPzmR4SEvaTtlJmPKOzosg==
X-Gm-Message-State: AOJu0YziY87eu2z1M1IjsrbT/tJIW1L3xHK5PX9ErBvbNVcQa8Hz5TOk a33G/T7hULtq0YC7cGnefh7o0JO+86hefonw6HNneX3sVrHh5h//7amm263b3kPSJe+8NZHf6mr a
X-Google-Smtp-Source: AGHT+IGuht/KrgQvfiMAZKBMXU3MpqlpURUteJ3yqFU1ySKQWusF9b4a4Xfnmnm3zIj2EiAw8e6raA==
X-Received: by 2002:a05:690c:4c8f:b0:664:a85d:47c6 with SMTP id 00721157ae682-6b1bdb21ae8mr155366247b3.33.1724154597198; Tue, 20 Aug 2024 04:49:57 -0700 (PDT)
Received: from tleilax.poochiereds.net (68-20-15-154.lightspeed.rlghnc.sbcglobal.net. [68.20.15.154]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6af9da16995sm18732657b3.111.2024.08.20.04.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 04:49:56 -0700 (PDT)
Message-ID: <a8b69cf0e7d33aed66ae125f40e377bccb4b6918.camel@poochiereds.net>
From: Jeff Layton <jlayton@poochiereds.net>
To: Rick Macklem <rick.macklem@gmail.com>, NFSv4 <nfsv4@ietf.org>
Date: Tue, 20 Aug 2024 07:49:56 -0400
In-Reply-To: <CAM5tNy7g+YCiiZQD7G6Ryv_Mo8N5BeRiqMP=224zPpEXa+Yi+A@mail.gmail.com>
References: <CAM5tNy7g+YCiiZQD7G6Ryv_Mo8N5BeRiqMP=224zPpEXa+Yi+A@mail.gmail.com>
Autocrypt: addr=jlayton@poochiereds.net; prefer-encrypt=mutual; keydata=mQGiBEeYhFgRBADUBVeceaUsoDomIQU2c2Zwoao+5aJTevkZJPC1BlcS2bHqgAEcmEMZt 7SZ+oL3zsXPgUwUzt347FAO6fWCYVn+f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Qie34ilAd9cHr kKIu0H6WECl6MRGbQS901eUb28AUm4TTIvrHjGtXAP4eXZeLhODY+hp+dTGFkRNOWQ5fsx/3orBLU JvKOKGny7v8ggQKzFV1DYPM8X3iBeiFUQvxN9M8ts8NsO1DcAEISZnWlMpw7mKtDzOf/d6PAlT3lq q/2QWqNFB6xOBr5rQ5xwl
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.52.3 (3.52.3-1.fc40app2)
MIME-Version: 1.0
Message-ID-Hash: NFR6CC6VHBLYQ6CRPNSMRBPCR2WJHD5I
X-Message-ID-Hash: NFR6CC6VHBLYQ6CRPNSMRBPCR2WJHD5I
X-MailFrom: jlayton@poochiereds.net
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
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [nfsv4] Re: RFC: new MUTEX_BEGIN/MUTEX_END operations
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/ANG5gkIWbMwY_JdyXGofQlG87ik>
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 Thu, 2024-08-08 at 13:36 -0700, Rick Macklem wrote:
> Hi,
> 
> Over the years, I've run into cases where it would be really
> nice to be able to perform multiple NFSv4 operations on a
> file without other operations done by other clients
> "gumming up the works" by changing the file's data/metadata
> between the operations in the compound.
> 
> So, what do others think about an extension to NFSv4.2 that
> adds 2 new operations:
>   MUTEX_BEGIN(CFH)
>   MUTEX_END(CFH)
> Both would use the CFH as argument, and no other client would
> be allowed to perform operations on the CFH between the MUTEX_BEGIN
> and MUTEX_END.
> 
> I think there would need to be a couple of properties for these:
> - There would need to be an "implicit" MUTEX_END when any operation
>   between MUTEX_BEGIN and MUTEX_END returns a status other than NFS_OK.
> - I think you would want a restriction of only one mutex for one CFH
>   at a time in a compound. Without that, there could easily be deadlocks
>   caused by other compounds acquiring mutexes on the same CFHs in a
>   different order.
> - Only one compound can hold a mutex on a given CFH at any time.
> - MUTEX_BEGIN/MUTEX_END can only be used in compounds where SEQUENCE
>   is the first operation.
> - All mutexes are discarded by a server when it crashes/recovers.
>   (Any time a client receives a NFS4ERR_STALE_CLIENTID.)
>   That way RPC retries after a server reboot should work ok, I think?
> 
> I am not sure what the semantics for reading data/metadata should be,
> but I was thinking that would be allowed to be done by compounds for
> other clients for the CFH. If a client wanted to serialize against
> other compounds for the CFH, it could do a MUTEX_BEGIN/MUTEX_END.
> 
> I see this as useful in a variety of ways:
> - The example in the previous email of:
>   MUTEX_BEGIN
>   NVERIFY acl_truform ACL_MODEL_NFS4
>   SETATTR posix_access_acl
>   MUTEX_END
> - Append writing:
>   MUTEX_BEGIN
>   VERIFY size "offset in WRITE that follows"
>   WRITE "offset" etc
>   MUTEX_END
> - A bunch of cases where NFSv4 lacks the postop_attributes
>   that were in NFSv3.
>   MUTEX_BEGIN
>   WRITE
>   GETATTR size, change,..
>   MUTEX_END
> 
> So, what do others think?
> (This was obviously not possible without sessions.)
> 

It's an interesting idea. Quite a bit different than LOCK/LOCKU for
sure.

The difficulty here will be in defining what activity this mutex
blocks. Just other MUTEX_BEGINs, or is this a mandatory lock for all
access to that filehandle? Assuming the latter, would READ or GETATTR
activity also be blocked? If not, then we'll have to have a list of
operations that are blocked by the mutex, and new operations will have
to have their semantics spelled out clearly vs. MUTEX_BEGIN.

-- 
Jeff Layton <jlayton@poochiereds.net>