From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796377443; b=jiOi9XETVOJlNa81VUj1qROGTo/hwLcoLlm7fI7zBed2/CmPnI1EqyALLYjfkL3OH73v UdAOz4qNCDzULWcsRgLDTlShIwa2NSzql78POmyTT9oGiyGpVr4xa9kjyOHYR4AaN1ao1 8Syl4Jby1IRWUYE87klvu8FDk/EroYvwLcgfV9NTjusD8K/RnfgvJGP1p0+kJL3mMvl+t ND5cG8dtVPFZdYGDpMuWnOI0twzHdZ+7URmBjHQwCJtTodpq3YaVsmW72GpHiJj1a3IVe GD3/gU25clIIGsubg7fb4EDqQNjSxxuj5ATQN3VeNyC8b50JqyewnDxfpn+TU+WVRyw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796377443; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=+Sgz0wE7kkar5jWy0q7K8usuLykuGPAD68jBwPct0f8=; b=QAG7sHG/ALzStM8kXT5/hhDQQMy7OgW6hVFd5X9frQnV/Nw3+qQYNGZF1UCEicb2I+rQ y+oLnuck9/9vgnycVvFlrE9iEMamilKwGnvKCzNXaEzVDNSuDyp902l38ct5RJnZzC+C0 iNc2AcTppJ+JaTDdlvm20Hl6V9nh5dZLfhqd+cp4msC9/3T6BO8VJLQZ8Grq9YehyMIgN pqiD2blNS0r8sgCrNJ/HnhVScODYk3Ec/5LLjh2M393NC8YZkhIQUZqh6fxR9M1caDsVl 02jT5GS6ztuVJ7KvMQ1ksMt6StynA89BkShQVAPL/WX+oJ6vplxjrKtthKV1znm+0Eg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39A47606A322 for ; Fri, 4 Dec 2026 09:44:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 39A47606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id DA27068B05; Fri, 4 Dec 2026 10:43:59 +0100 (CET) Date: Fri, 4 Dec 2026 10:43:59 +0100 From: Christoph Hellwig To: me@noctarius.com Cc: Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, Benjamin Coddington , Christoph Hellwig , Chuck Lever Subject: Re: [PATCH 3/4] pNFS: reclaim uncommitted layout writes after a server restart Message-ID: <20261204094359.GC23068@lst.de> References: <20261201-pnfs-layoutcommit-reclaim-nfs-testing-v1-0-d2b7dff70c94@noctarius.com> <20261201-pnfs-layoutcommit-reclaim-nfs-testing-v1-3-d2b7dff70c94@noctarius.com> X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201-pnfs-layoutcommit-reclaim-nfs-testing-v1-3-d2b7dff70c94@noctarius.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Dec 01, 2026 at 03:18:37PM +0100, Christoph Engelbert via B4 Relay wrote: > + /* > + * As prepare_layoutcommit, for a LAYOUTCOMMIT with loca_reclaim set > + * after a server restart: encode every write made under the layout > + * that the server has not acknowledged, including those of a commit > + * still in flight. Returns -ENODATA when there is none. > + */ > + int (*prepare_layoutcommit_reclaim) (struct nfs4_layoutcommit_args *args); Wouldn't it make a lot more sense to pass the reclaim flag through nfs4_layoutcommit_args instead of adding another method?