From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D81DEB64DA for ; Thu, 20 Jul 2023 04:55:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbjGTEzF (ORCPT ); Thu, 20 Jul 2023 00:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjGTEzD (ORCPT ); Thu, 20 Jul 2023 00:55:03 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC1A11FCB; Wed, 19 Jul 2023 21:55:02 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 2B7A167373; Thu, 20 Jul 2023 06:54:59 +0200 (CEST) Date: Thu, 20 Jul 2023 06:54:59 +0200 From: Christoph Hellwig To: Jens Axboe Cc: io-uring@vger.kernel.org, linux-xfs@vger.kernel.org, hch@lst.de, andres@anarazel.de, david@fromorbit.com Subject: Re: [PATCH 3/6] iomap: treat a write through cache the same as FUA Message-ID: <20230720045459.GC1811@lst.de> References: <20230719195417.1704513-1-axboe@kernel.dk> <20230719195417.1704513-4-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230719195417.1704513-4-axboe@kernel.dk> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Wed, Jul 19, 2023 at 01:54:14PM -0600, Jens Axboe wrote: > Whether we have a write back cache and are using FUA or don't have > a write back cache at all is the same situation. Treat them the same. This looks correct, but I think the IOMAP_DIO_WRITE_FUA is rather misnamed now which could lead to confusion. The comment in __iomap_dio_rw when checking the flag and clearing IOMAP_DIO_NEED_SYNC also needs a little update to talk about writethrough semantics and not just FUA now.