From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="F4wFCqWM" Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF6CB9 for ; Tue, 21 Nov 2023 22:50:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=hZ2q6EkDo0uvKktJJU2MfAPdDyljYV7S4qY0MpKwIlA=; b=F4wFCqWMc6KeoVbFfoMAz2nE+a Pv8pROvlUMHwhseVw3R7N++XUidq4fEYD73KrUTwonKN4rkUWlIX0VFgnKtDf5MV+EuRMq5UNFtO/ oWVm9M/nMUlDEjVCrnk5arklBrHlEIxlRMAzeFSK43KYq/SO/j3uO9QnyTVP5YAfdED/L2Z3U3VXa irbSVR3/7GkuCn4eJK9sQ+mMrqySnkZId8ftkVeBY1Etxz/Tqml3KJhD5JDJWOp1KCOjzXw6Z5YXk u0dF+JgaPFD9cbziLmxV07MPzyXbfkudHMd5pvzb6ZewxhbFh4GdoHnqffgoNGb1KoP/a2A/VCFCi ebM9PK+A==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r5h49-000rKk-27; Wed, 22 Nov 2023 06:50:29 +0000 Date: Tue, 21 Nov 2023 22:50:29 -0800 From: Christoph Hellwig To: Dave Chinner Cc: Josef Bacik , Amir Goldstein , Jens Axboe , Christian Brauner , David Howells , Al Viro , Jan Kara , Miklos Szeredi , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fs: allow calling kiocb_end_write() unmatched with kiocb_start_write() Message-ID: References: <20231121132551.2337431-1-amir73il@gmail.com> <20231121210032.GA1675377@perftesting> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, Nov 22, 2023 at 08:30:01AM +1100, Dave Chinner wrote: > I like this a lot better than an internal flag that allows > unbalanced start/end calls to proliferate. I find it much easier to > read the code, determine the correct cleanup is being done and > maintain the code in future when calls need to be properly > paired.... Agreed.