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 85A77C433EF for ; Sun, 22 May 2022 12:52:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344663AbiEVMwE (ORCPT ); Sun, 22 May 2022 08:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245208AbiEVMwD (ORCPT ); Sun, 22 May 2022 08:52:03 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 662CC1C110 for ; Sun, 22 May 2022 05:52:00 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id B4B7068AFE; Sun, 22 May 2022 14:51:57 +0200 (CEST) Date: Sun, 22 May 2022 14:51:57 +0200 From: Christoph Hellwig To: Al Viro Cc: Christoph Hellwig , Matthew Wilcox , linux-fsdevel@vger.kernel.org, Jens Axboe Subject: Re: [RFC] what to do with IOCB_DSYNC? Message-ID: <20220522125157.GA24032@lst.de> References: <20210621135958.GA1013@lst.de> <20210621140956.GA1887@lst.de> <20210621142235.GA2391@lst.de> <20210621143501.GA3789@lst.de> <20220522074327.GA15562@lst.de> 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) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Sun, May 22, 2022 at 12:41:36PM +0000, Al Viro wrote: > Add > #define IOMAP_DIO_NOSYNC (1 << 3) > in iomap.h, pass IOMAP_DIO_PARTIAL | IOMAP_DIO_NOSYNC in btrfs and do > if (iocb_is_dsync(iocb) && !(dio->flags & IOMAP_DIO_NOSYNC)) { > in __iomap_dio_rw(), you mean? Roughly, yes. > I wonder if we want something of that sort in another user of IOMAP_DIO_PARTIAL > (gfs2, that is)... I don't think gfs2 needs it, but it might be worth to take another look at how it handles sync writes.