Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3264269lqo; Wed, 15 May 2024 04:58:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQ35GmIGUYZlBlj/oMVLVUyCtd8AWqOZPNrGWPMsYyNxfS4D8p2l9L9sVbAaGhB6PzmNtjVTK7yhLbTJtLSjXt4o80Vsc/QSkpcVCjog== X-Google-Smtp-Source: AGHT+IERkKR3lUZGVntUHDU8pBHFUUAHy4F5Q3JRcSApuCl1JHsVh4uSnhuU23VSNWNlnBJ8LrXB X-Received: by 2002:a17:90a:d34f:b0:2b4:3669:65f0 with SMTP id 98e67ed59e1d1-2b6cc342aefmr13008672a91.6.1715774301493; Wed, 15 May 2024 04:58:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715774301; cv=pass; d=google.com; s=arc-20160816; b=Ew10eCcf/bo0ncjuoZRlMInD/iq7vzhcjtrBT15a790am9k5qaYsuRwPZjclYvnd2x I8FTz7sPdTXzkmNIZ0Ihu5Uh9uGeRfmLUNGcmPy2ajp+/QdozjGmDlN9+gOIX8pMhhUf rwWwE3T8kDR3mJmLT2Q+ce4fP4D41wrhnH2MecceqgOyRAjIc3M2HKUrg+bKB9hs+Le5 vDadkF/1zHji5UyHrGeIXOUYECrUoiVvUT4ta1ZFmef8S2bZCH/u0sCQjBq1mrwd4Sck G04buUCOQ/QL090/BY7S/N0cTb56M3L+H3/qv9b9mhwLZ/HomXs+MJSdf8sdatA6OJy0 1MKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=ETUFw5mIXGLFGd/uZLG+yQsUHb80Vkt/aoH/pm+X418=; fh=qZzPDJtj2q3+ZN2bDkunywql9+Y42zMklRelBsiHoAg=; b=f0qypeCZIIL3z0f0PpnHU8Evsn2+L8Lg0YkB3JNdAmQETTNVvNYVGQ+N7aF1WXMefW eX1zyZsphMd+JpUFvrJTlilTlkp2yHDLaEI7s7ZSGWwK50/BCbL2xhr0WhCOA5UIUVLL k7pSgp5G/zODGUDTILbZ0TV58Pumuy9sPYBJHCovq1ocyd+L7isppHr1Is/ZXlUTjGKp Bty1x97s1UkVQMr3EUNoNL20X1gs+nKqVdN/LI9i2ra7xHwOmTuImWB9LWCWXfFwz+MF I/7+PTjdENcDajTbwhUwqAsToFj8a8+p4MR8Ai4bTCGc1ibh2cyIuy3hczNLQcR2CKvm a77w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@in04.sg header.s=fm3 header.b=I2duCUSO; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fqR56VZI; arc=pass (i=1 spf=pass spfdomain=in04.sg dkim=pass dkdomain=in04.sg dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=in04.sg); spf=pass (google.com: domain of linux-nfs+bounces-3259-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=in04.sg Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b67168a451si11960503a91.173.2024.05.15.04.58.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 04:58:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3259-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@in04.sg header.s=fm3 header.b=I2duCUSO; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fqR56VZI; arc=pass (i=1 spf=pass spfdomain=in04.sg dkim=pass dkdomain=in04.sg dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=in04.sg); spf=pass (google.com: domain of linux-nfs+bounces-3259-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=in04.sg Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D3B6C284594 for ; Wed, 15 May 2024 11:58:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA5376FE16; Wed, 15 May 2024 11:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=in04.sg header.i=@in04.sg header.b="I2duCUSO"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="fqR56VZI" X-Original-To: linux-nfs@vger.kernel.org Received: from fhigh5-smtp.messagingengine.com (fhigh5-smtp.messagingengine.com [103.168.172.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDB6B6F073 for ; Wed, 15 May 2024 11:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715774299; cv=none; b=Cfw6jv0qTd+xEcXvIoAL2GALMFy4Z9pBBO2IngEridUZAdc/QDBP1BEib0wj4fc2Qdu4RzNMhXAScTWzYDftKRyyV6obeeUZurs7Xg9dKLvV7g66gWX+mzxvzK+B17Ezl4o3HGUqmcRAUHJfa1A4cn/IDmWeA/+jIS+emUO0GHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715774299; c=relaxed/simple; bh=ETUFw5mIXGLFGd/uZLG+yQsUHb80Vkt/aoH/pm+X418=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=sGx/BNcUTr70TakEc0ViddGaKM3tWn+6kR7ncqEvHnN6i4h3xAP/aaVWt3AYyjHLp7X4AtVesl2T8wk0/D6wA1iSpXeQSZvBqIQW+QudD8omvzOjSmmxbkzMhCP0NXORaMT91spuvSHpq/1GZXD/OQY85QJ2bso7uGuJcQ7Joew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=in04.sg; spf=pass smtp.mailfrom=in04.sg; dkim=pass (2048-bit key) header.d=in04.sg header.i=@in04.sg header.b=I2duCUSO; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=fqR56VZI; arc=none smtp.client-ip=103.168.172.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=in04.sg Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=in04.sg Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id EAF611140198; Wed, 15 May 2024 07:58:16 -0400 (EDT) Received: from imap47 ([10.202.2.97]) by compute6.internal (MEProxy); Wed, 15 May 2024 07:58:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=in04.sg; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1715774296; x=1715860696; bh=ETUFw5mIXGLFGd/uZLG+yQsUHb80Vkt/aoH/pm+X418=; b= I2duCUSOTPp0tKY5DyumMC+qIjmfhk8qrOz5ecwGukc6hvIgpcvCCrXl6Nfj11uu 1ilxRizmKPIxzhJuToE+XtqFOdxAUiiO3SQxf+aFwykj+Ugl2AN0xzXW6ETbz7HU fQ4N/yPofz1fnpUe600V5jLbD7wrSQkkLlRR4w97/qiPMhz6Vam7fYAXRD3IlFoz DAztfzd2zcyoW1SGeNc6YzpLFCtCsZUSYPYCvAeagFaLv8tlaa9thtUL7U3QNRfS snFazjILew6RHTe4XHvGNwycdYQ9WNdFrpR0awKcNU4TTKa0YcXuHatErvp0mxrZ 3JD5JL58bAnVFUdKzbFFhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715774296; x= 1715860696; bh=ETUFw5mIXGLFGd/uZLG+yQsUHb80Vkt/aoH/pm+X418=; b=f qR56VZIs3vZzkNvBqK8ApC4czJtJDrbvlMYP/0/2d6dnMxtGSiSz6KTSfTrHKsax tBnOPxMvcMfYrI4WDqpxUip47hPNWIomHWLS/L8OXzhViTZ561AiQP9UjkG0IU8S cxn9dPV2sVYcsFHD0mRa4rW8/RTAadVzrf8Xcd+wgdQ4+V7gO0j3rCDv80BtMMME olPRxAPobGvKv5NpnFAGEwvugLjF7PJfMmiwYx2eK/lsaHwp8tQZDlTS7dt/0fKX iZwiGtFDeUvfJ/kNrTlHNfpYORLbEVSYGwcISbNgZZkUadSLV/MrVTsheIUap3Lq c2s9DAdOMLMMGDHGbxcEw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdegkedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdfv vggvucfjrghoucghvghifdcuoegrnhhgvghlshhlsehinhdtgedrshhgqeenucggtffrrg htthgvrhhnpeffiedtuddvtddvieekvefhkeehudevtdetvdffgfeivdefudeijeefheei geetleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhhgvghlshhlsehinhdtgedrshhg X-ME-Proxy: Feedback-ID: i8ba9497a:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7A6C8A60078; Wed, 15 May 2024 07:58:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-455-g0aad06e44-fm-20240509.001-g0aad06e4 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <21fcfc6e-4d34-43bc-8bdb-63a5cd0e0c9c@app.fastmail.com> In-Reply-To: <77344fe208d76fa98ba24d79f2246e34ae20b543.camel@kernel.org> References: <9b3e6161f290246eb8003767b2b34596a10f5d71.camel@kernel.org> <71b3ff942fdf6f070f6cd59f29e04081d3f94c38.camel@kernel.org> <6c16c58a9e6de330eab68aadd4714954df41dd1c.camel@kernel.org> <77344fe208d76fa98ba24d79f2246e34ae20b543.camel@kernel.org> Date: Wed, 15 May 2024 19:59:22 +0800 From: "Tee Hao Wei" To: "Jeff Layton" , "Trond Myklebust" , cperl@janestreet.com Cc: "linux-nfs@vger.kernel.org" , "willy@infradead.org" Subject: Re: Too many ENOSPC errors Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Tue, 13 Jun 2023, at 04:20, Jeff Layton wrote: > The point here would be to bring NFS more into line with how other > filesystems behave. As Chris pointed out, other filesystems don't repo= rt > an error on a new write() just because there was an earlier, unseen > writeback error on the same inode. > > I think we can achieve this by carving out another flag bit from the > errseq_t counter.=C2=A0I'm building and testing a patch now, and I'll = post it > once I'm convinced it's sane. Just wondering if anything has happened regarding this issue. I saw "[RFC PATCH] errseq_t: split the ERRSEQ_SEEN flag into two" on the list but that didn't seem to get any attention.=20 The current behaviour is really quite surprising because if you have the following sequence: 1. quota hit or remote disk runs out of space 2. write() returns 0 3. close() [1] 4. space freed 5. write() returns ENOSPC and then read the file, you'll see the contents from the write in (5) and *not* the write in (2), even though the write in (5) is the one that returned an error. [1]: this returns ENOSPC too, but it seems like we're assuming applicati= ons don't check the result of close() --=20 Hao Wei