Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B2F4051012 for ; Wed, 22 Nov 2023 10:20:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JjkFnijP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20672C433C9; Wed, 22 Nov 2023 10:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700648412; bh=+rF9Vifsr7jAReYkrDoqYQD7qInzjq/w6Dm9ScKsxqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JjkFnijPY4yuc3S89P65mtgC0aOodU1a0RWLuJgeQiVoz/dZbp63cwupd2Rks6g7Z ipGGIz72tExgIm2jXjXldacXW4xdJ4yEBo/sMlECsst+5oywd2sfpZEyYkodq4Rek+ qevfKKZ9YZyNivp5cf24W4JgKqB3fYfAVh2d5yuAqOOKXy3HvsBb66n0tcNxgABQKG Pyf+UgCr9LXxEEwqxGbkBPklocD8uU4dKpgLIb+xKlEGWodEcn8Hpge1rPbKHIOMx6 1gJ1nnBuWdNJSiBwmPUVOrjIpM4AFW9DA3YganrwYnY1wrXNMvtxQeNigVgBP/mCBb fbMxdGfHl+thA== Date: Wed, 22 Nov 2023 11:20:07 +0100 From: Christian Brauner To: Christoph Hellwig Cc: Dave Chinner , Josef Bacik , Amir Goldstein , Jens Axboe , 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: <20231122-planung-gerne-0f9a1e3d09be@brauner> 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=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Nov 21, 2023 at 10:50:29PM -0800, Christoph Hellwig wrote: > 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. Agreed.