From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 DD4CA2D739A; Thu, 13 Nov 2025 10:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763028396; cv=none; b=bvWcPoI0JWf6gaPjwHdimxWW6Oz4/kg4hDJ1QPfOlxO0TL1K2dq0Gfj9GsEiH8Kdx27Zf0TqwP5ju6WvXUVwiX6ym2jov9GCtlh/RqiXBx0om9+stGCX9HWrgkhbLOATneVAUASoHNUoaASzos6YmtV9rPAaT13kw4nmKO9C4J4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763028396; c=relaxed/simple; bh=lPNmA52aTdyUEu5+nFfkMkxORbM+xtw164ICWepDdEs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HVz5XlludwJPXHjLhDBYuBfmXsRgo2TR1s/5W4w8GghE61Yi4CXa9ZtSHRmcpv9gHdPSsFc/xRObfJV5J8ibJnhUddGVrikE3Zw5PPphzJrCPZ5dnNlwG0KmfzXfhLRfau4NTL4/FNMelyaiKQZ73kNHRqCY0xMdLdqzvhOne9s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 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 062C2227A87; Thu, 13 Nov 2025 11:06:31 +0100 (CET) Date: Thu, 13 Nov 2025 11:06:30 +0100 From: Christoph Hellwig To: Jan Kara Cc: Christoph Hellwig , Christian Brauner , Alexander Viro , "Darrick J. Wong" , Jens Axboe , Avi Kivity , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org Subject: Re: [PATCH 4/5] iomap: support write completions from interrupt context Message-ID: <20251113100630.GB10056@lst.de> References: <20251112072214.844816-1-hch@lst.de> <20251112072214.844816-5-hch@lst.de> <20251113065055.GA29641@lst.de> Precedence: bulk X-Mailing-List: io-uring@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Nov 13, 2025 at 10:54:46AM +0100, Jan Kara wrote: > > You mean drop the common helper? How would that be better and less > > fragile? Note that I care strongly, but I don't really see the point. > > Sorry I was a bit terse. What I meant is that the two users of > iomap_dio_is_overwrite() actually care about different things and that > results in that function having a bit odd semantics IMHO. The first user > wants to figure out whether calling generic_write_sync() is needed upon io > completion to make data persistent (crash safe). Yes. > The second user cares > whether we need to do metadata modifications upon io completion to make data > visible at all. Not quite. It cares if either generic_write_sync needs be called, or we need a metadata modification, because both require the workqueue.