Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4685288ybg; Mon, 8 Jun 2020 14:20:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzcts8o/YLQTNTouL/9SUdH+W8ypcghZsOLhmpraH6mUFJ/qImOfKzKM3CFNpfAmGj39h5 X-Received: by 2002:a17:906:6c82:: with SMTP id s2mr22313356ejr.215.1591651231257; Mon, 08 Jun 2020 14:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591651231; cv=none; d=google.com; s=arc-20160816; b=jxXcRklYTO4twP5WsAxcv8ZB2c7uRzjUc+O1OlJ9Atp7XmIzs7bD6Bh6S6aE48XZHq RGBofzTFbTydZnayxLJoEpvp0jYSqYqSs7QysKELHFJqwdq0YTG0KPCimzMWz2zOV/HQ eogCOnF1eeYIs7FwnKj3IKxWFfMrQBf1cc/wQvE+JYR4CZ717deFiCzz1AIBg1JJ7wl5 eypRDDVgD94i8EvaGxLdeWr9ysF0KYszfJJqcLWCaZBwiJttYSH7tHUtt+02MxfvzCLY Q3je9OI0h8nPX6bevjcw7zKPFBugFhwsGKD4Ib+D0JuOMJUx+AcPiAIwJ8SB9heILBme wnpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:content-disposition :mime-version:message-id:subject:to:date; bh=YmVDhyy0m10evhMes7TPnBi2dPxzV/UpjY8ny4orJig=; b=DaATTOzl26aXWYchvB9PJeDniktjuPGfwUq2crzHcF48uqxHWBqk9AlLYT1gjbAB/e 32pawFRkgr3ntDZgv7LCna5uY6HoXwTpPiAr26C5C+bxHZI+v6O0rh1Lg9lyyhoaC2HP DFDZJbgcPuqjnt21yAd+/FEHOyIMFsnANCvcp4wZQ3R+II5N/GeafhJ1cA6XgAER/4Wy PZD3Yn9qt0F4kBp7ZN+SdxGcVRp477KMGnF2Y06TWCebAWwCqO/kf+RGB7g1Roq2CMEX ghT8u6Q6wyiXRyjsF49/se61ii3voIDNxh9KSSCdGR4pNIkzh3MRXng8KpU77xK+4Fjp HQqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d19si9538822edr.611.2020.06.08.14.19.50; Mon, 08 Jun 2020 14:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbgFHVTp (ORCPT + 99 others); Mon, 8 Jun 2020 17:19:45 -0400 Received: from fieldses.org ([173.255.197.46]:34790 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgFHVTp (ORCPT ); Mon, 8 Jun 2020 17:19:45 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 08FDB878C; Mon, 8 Jun 2020 17:19:45 -0400 (EDT) Date: Mon, 8 Jun 2020 17:19:45 -0400 To: linux-nfs@vger.kernel.org Subject: client caching and locks Message-ID: <20200608211945.GB30639@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org What does the client do to its cache when it writes to a locked range? The RFC: https://tools.ietf.org/html/rfc7530#section-10.3.2 seems to apply that you should get something like local-filesystem semantics if you write-lock any range that you write to and read-lock any range that you read from. But I see a report that when applications write to non-overlapping ranges (while taking locks over those ranges), they don't see each other's updates. I think for simultaneous non-overlapping writes to work that way, the client would need to invalidate its cache on unlock (except for the locked range). But i can't tell what the client's designed to do. --b.