Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp222524rwl; Thu, 23 Mar 2023 15:15:54 -0700 (PDT) X-Google-Smtp-Source: AKy350bpbQsn8Ybf1w4x0CBketzsQsmBgXMlY+d4Qa+wQTn/WnNi+0F3ZSjKRn9akXE00m2jTS03 X-Received: by 2002:a17:906:524a:b0:931:7709:4c80 with SMTP id y10-20020a170906524a00b0093177094c80mr521369ejm.71.1679609754394; Thu, 23 Mar 2023 15:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679609754; cv=none; d=google.com; s=arc-20160816; b=B19Wy7AXgleGFhL0zjMq2pFIp3tbBpxoAn6xjmBDwpNRlU4kcGDp8GCQmITFkREI7d ZPcBS813a+2mdlgSLgx2hCEnw04f0LlgC1f5TlN5HAaGm+Tks3m/A57cGjcrt1vhrpYF yVFxL6h2EqYujqcDwAXlv9y0k8qlcF8exAdw2z13sOzYvlVWlPT2UpFwd1CBrNJZ9Skk sRrDYsL3T0rCalFgHkqF0znSk0BsQ4p3wnUQ0HM9dF7qey99In5iy5mf2tEo2PlkSgZT nxV9kmhMKtdoviwjEkDMIYcf3K5vNefdR+RcIFRKUSWiMkYQRlU8nJGWCn3OxT4SRMI4 KqOw== 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=qXNWJfyUItrRDuAMEpPJlWIv3Fg4IgJLJve+sAdgYfo=; b=mx2MElM5jMS0Mlz7pwJQ7QG7d0oP2ldn5q0LXhyTmS4npA0r+/DNc76uZqogWN3sFZ SzQaA1w0RVYIE+cE85IVO12jfKE2gDkHXngihhTomAbvoFfxxVcd4RFgnNgPoxA748sa ZfDLbDNhWrwFUEEu+6L8jWqfTHViPopI7yaX2R20HaE5IrMK8eCvy2Y/8NuyTeEy8Y1q TXuEMbHwQUrdqnfcS1gQ8YGv4/YrmoOQtbCOfvaG/J8QFYwZj5TaYzVVqnhQWqNuH/zB +znzBtNSFs7m9idzWXTKWYO6+K8IbPDirAfGornsWQJI8VgFWwISROTTfLbb+ABDKxIR 41lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pdHQIosA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg16-20020a170907a41000b0093363985e57si15087183ejc.712.2023.03.23.15.15.30; Thu, 23 Mar 2023 15:15:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=pdHQIosA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231196AbjCWWPE (ORCPT + 99 others); Thu, 23 Mar 2023 18:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjCWWPC (ORCPT ); Thu, 23 Mar 2023 18:15:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33DC4B2 for ; Thu, 23 Mar 2023 15:15:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C2C86628E6 for ; Thu, 23 Mar 2023 22:15:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE53AC433EF; Thu, 23 Mar 2023 22:15:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679609701; bh=M6e/PTV4/QD41rNo3Hf88nH85pNImdOy2sC2f6czaF8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pdHQIosAxULsZ71ZQ4M3a/+6nA4JelE9m3heqzN1jm33f09xdvn5BM51j2+5ZgtGh ozKAK44ifABBqfHW6A11+OPzBa5Hdro61rFw/XqZTTed/Vv3Q/HfAzLZI3kCEAYyth Cq5yxS4T2CCakoiydzTReEchAQWFlbxpUYdKDXvvU1DtEayvqCHCECdn2XC0AVaEat DSQvgZ1qYGZWPkf/De7ZlnVYnQVChVNH1lSeGeUNbndJdhpH0bzmFvqHLSjOCitxdZ zA+t5V7dU6H91Khi7uFbevcWmfWNttqpEbg1r/8ix20xNIO+CKuW9yWHqDLj0sZShN WLSTM/iexVZ4w== Date: Thu, 23 Mar 2023 15:14:59 -0700 From: Jaegeuk Kim To: Christoph Hellwig Cc: Hans Holmberg , Chao Yu , linux-f2fs-devel@lists.sourceforge.net, damien.lemoal@wdc.com, aravind.ramesh@wdc.com, hans@owltronix.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] f2fs: preserve direct write semantics when buffering is forced Message-ID: References: <20230220122004.26555-1-hans.holmberg@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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-kernel@vger.kernel.org On 03/20, Christoph Hellwig wrote: > On Mon, Feb 20, 2023 at 01:20:04PM +0100, Hans Holmberg wrote: > > A) Supporting proper direct writes for zoned block devices would > > be the best, but it is currently not supported (probably for > > a good but non-obvious reason). Would it be feasible to > > implement proper direct IO? > > I don't think why not. In many ways direct writes to zoned devices > should be easier than non-direct writes. > > Any comments from the maintainers why the direct I/O writes to zoned > devices are disabled? I could not find anything helpful in the comments > or commit logs. The direct IO wants to overwrite the data on the same block address, while zoned device does not support it?