Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp1167900rwa; Sun, 21 Aug 2022 02:36:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR6UGS86Mk+nDONi2nDsdmTN4IZwZP4pKDbsRHVedPDz6LrFtlJiyv3Q3Y9gcrZKv8tIfsP2 X-Received: by 2002:a63:6bc5:0:b0:41c:26d2:81e2 with SMTP id g188-20020a636bc5000000b0041c26d281e2mr12628510pgc.522.1661074591571; Sun, 21 Aug 2022 02:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661074591; cv=none; d=google.com; s=arc-20160816; b=Zx6tyhHi2lq665LYcPOnceV6lLw9eDCNkeZ4+3HGNspOlhAl/epvzVEJyANlWZmbsK 7H1RZ5Cc0tum5HNmm0vBxyym3Y1SKRhMRILgdvRovym3a0EA6PXz1BnN6JH0TP3JHpDj S/Zd07fU2BdF949x5VmV5fV726+si1jDPdfMQqtEQ6hR5HEzdoySBfF2o7/EuPRhXTow YtFKIdLR8tnYkLIVD2MIQKvlQeYhwgH5gfXrYuV06TPCY32HO9Y1nHYIuF8nBW2P+JnX 76YSkpJMpdbsQnOF7QpF+eH+0+/GxigcSpIi4cT2YJ7hJPE3bOwQbcmMxtuEZeTpT79a 680w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZG4Es9fzRMT5wrH3Tq+h9KlclsxiCzHKQ6STwuA6oEY=; b=dTa3wWaAN1ywpY26Q3iPtF2cq71dCPeQwjIZrwABO/tj75LFZgqoF2JROk6dZQ/1bZ NgdvRyZsD+lkWqlBuFlUaBKm6Y5do91/fd4VshisaXqyqouVdwViPheufQ7oK7+6mMCb bo4/2X/+fv1xVaeZaQv5Qxa0FlR4frRWgohc6y5PXNuLT1lavozm3c0YFtksNZxDcKv9 XZv1959pyUZi+9QiXVe473JOmdIKrtzcezOwojFTLuKIdjNgN2Y3u1DJ0FYw/xjqL8lS 9ALJniSscFI/paIO9eBch/JmOawJ6fA2xChw1ZdgnMAE36I33w8gFA1rP+XhVEGfyh3U Y1BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NPTUpR2T; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a170902c94c00b0017279224539si10221898pla.102.2022.08.21.02.35.32; Sun, 21 Aug 2022 02:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NPTUpR2T; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbiHUIxi (ORCPT + 99 others); Sun, 21 Aug 2022 04:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229868AbiHUIxh (ORCPT ); Sun, 21 Aug 2022 04:53:37 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AAB51C104; Sun, 21 Aug 2022 01:53:35 -0700 (PDT) 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=ZG4Es9fzRMT5wrH3Tq+h9KlclsxiCzHKQ6STwuA6oEY=; b=NPTUpR2TGbEGKev6MERMWxooFG ZiJJjPsPAHnqBUcO2CFAj6Vu6hAc3j5M6DeVz3k2hJd7xxalHutHctTFyvYAhRSiMuYQzdMYaAa9k WBNgoPSU6TF4upc7I+yWqXWo+afkfRMrrsiTEmeBXwGm9kKSvw1mY2HuqMGQj1ybZWFBcviB7t/Jx CNZtj16845VF1Evf0T8Auz57FsdmXm7IQcRaeQn96X3j+ZSDhD8Nyc4APtWOwsUqG0QARrCSLeVgb xIMkJ0036ubpmdQL4mSj6MNnxsleHp2IQ98hONYLivxszc2hcm0EoaksqSX32ZF8ehDAQbYS5mLFa jLqkzAsg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPgi5-008Q9X-HL; Sun, 21 Aug 2022 08:53:33 +0000 Date: Sun, 21 Aug 2022 01:53:33 -0700 From: Christoph Hellwig To: Eric Biggers Cc: Jaegeuk Kim , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-xfs@vger.kernel.org, linux-api@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Keith Busch Subject: Re: [PATCH v4 6/9] f2fs: don't allow DIO reads but not DIO writes Message-ID: References: <20220722071228.146690-1-ebiggers@kernel.org> <20220722071228.146690-7-ebiggers@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Aug 15, 2022 at 05:55:45PM -0700, Eric Biggers wrote: > So if the zoned device feature becomes widely adopted, then STATX_DIOALIGN will > be useless on all Android devices? That sounds undesirable. Are you sure that We just need to fix f2fs to support direct I/O on zone devices. There is not good reason not to support it, in fact the way how zoned devices requires appends with the Zone Append semantics makes direct I/O way safer than how f2fs does direct I/O currently on non-zoned devices. Until then just supporting direct I/O reads on zoned devices for f2fs seems like a really bad choice given that it will lead to nasty cache incoherency.