Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 73B441E1DEC for ; Mon, 27 Oct 2025 13:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761571894; cv=none; b=Kdl+NMQixzJujzMTAHP/74HNUFPZv/CsCBFSBvhVRXWq1+VJd8Vk4vcyr7F9iZVX1qoGaYvkziEl99/DFYgQHlLK1V2OIDvp8KQTc/62M/WLIGh+tRTzhfjlto0UwqMsb1UWmxBmYi1ZGj2AbLPtB3mZZgB1lNQQLKcqB3TYOq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761571894; c=relaxed/simple; bh=scOlAiyX+CiIaVP+88maJ8d1fjXS4tXuBZ9FWYm9Pps=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XNgEtp+Mia+MPFH7LXdfLudhMGOrsEr1Gvy/PXblOXdmIV4rC6eCXSejd2nrA3hwn7wF/shHuhoFDvEQCJHbQhftXJLv+BBEL0PzgxO3lREG98xZCb0i0GxcGXdLBx6NMK99zV7x8zEAloHsasZJIR2JhM/nKORBI8NKmCdrHqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=B4ZuQZhR; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="B4ZuQZhR" 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=RDm4cbH4/wkQbp2RI++MByGQUZdICOfVbgfRTrGqvyE=; b=B4ZuQZhRHRCiK5Qo8r/kc3JKkn uz5dcIOeP74xs90QE4MmCO3UwKnegwnIcfTEqd+TCrUwvFCb4Lv+qtMryg5kO7jtCWu8KWs7RKBTI PWZNt/uQZ8eCtkSQbQTGExFePCAKKp4mSEP+BO9ffZkSaOCw4KqVVgzcrW0dCynRSP5uIrFlybOdv q0o0g6sR/aZG96t3RalQub557Nre66lsQy8HCP/VOzUzWyzZ1DYHsBQGTlluP4n9b9oA93sxUwB0e wVQnSpylDPFE6wNANRin8kGASCWyj1PBrQkDWeIgk0Byp1LJwVZ5dayYhnE/Q/7V4i9QRIngMonXn m6eKbP1g==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vDNJp-0000000E2kQ-2zqc; Mon, 27 Oct 2025 13:31:29 +0000 Date: Mon, 27 Oct 2025 06:31:29 -0700 From: Christoph Hellwig To: Chuck Lever Cc: Chuck Lever , Christoph Hellwig , Mike Snitzer , NeilBrown , Jeff Layton , Olga Kornievskaia , Dai Ngo , Tom Talpey , linux-nfs@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v7 14/14] NFSD: Initialize separate ki_flags Message-ID: References: <20251024144306.35652-1-cel@kernel.org> <20251024144306.35652-15-cel@kernel.org> <7d70c343-2630-46ed-9568-0cbe6d289827@oracle.com> Precedence: bulk X-Mailing-List: linux-nfs@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: <7d70c343-2630-46ed-9568-0cbe6d289827@oracle.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Mon, Oct 27, 2025 at 09:30:25AM -0400, Chuck Lever wrote: > >>> If (IOCB_DIRECT | IOCB_DSYNC | IOCB_SYNC) /is/ correct for all file > >>> systems, then it needs an explanatory code comment, which I'm not yet > >>> qualified to write. I don't see any textual material in previous > >>> incarnations of this code that might help get me started. > >> > >> IOCB_SYNC always needs IOCB_DSYNC as I explained three times now, > > > > It wasn't clear to me until now that: > > > > a. The reason to add SYNC in this case was only for DSYNC > > I might have gotten that backwards. The only reason to add DSYNC was > that SYNC doesn't make sense without it. Yes. That's something where the IOCB_ flags made the pre-existing O_ flag magic even more awkward.