Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp314350rwl; Thu, 23 Mar 2023 16:54:57 -0700 (PDT) X-Google-Smtp-Source: AK7set8jPRAUKiJPKI7Q3PUV8iD+x8PJupMzGC9mGRx8Izrt4qB3/dKUmiKWggLH42hIQmP52I+I X-Received: by 2002:a05:6a20:dc:b0:d9:76fa:3502 with SMTP id 28-20020a056a2000dc00b000d976fa3502mr948336pzh.36.1679615696726; Thu, 23 Mar 2023 16:54:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679615696; cv=none; d=google.com; s=arc-20160816; b=ULKocIZ+aiVGQXmeUAco9DgQYoFvSYDR/V8f5q9DcPKrps1iBvbUTNuo9ePIiALp6L xIo+F6RaNwNQTaBLmIx35f+6Py9oHPDzltW6deeJveICc3BFFFEpNi/eatoM/cKQcVpV P3T+mlOwvGeEGY/ZnpFKK8Hd9J5boAs7mLbtK2R1uqZRmC08mQboOBWVk9VRtTcTzmt2 Wusx4Wa72yvW7XPwToaHVSB80WDBBV7u8AH9HMThPrOHscGJgc9Gef3pNpP0emoQ2TJr YOzNe4Iw9ARoFVPQhyF2GiskMNTgbWZ8SnwxYCuKI3/buv0i1d7EBT7URQgmr0ggWOfz g8Jw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=R18BnHoMtJya1e0yyrgq7uYGd8BC0MMY1ic7PwCLQfk=; b=gew51K9NmiUqJFt3af3kedX5GrUFf0I0vkstWsXcvQ8SaiCPkCN+u1QMsz1GPqMx/d O0OTPdIZUdR5I8qNA56VoLuwr1K32MX18U15S4CVLVL+dP6wuR0VP9KJetD3+MN+LfX+ KUJKoIP89it6IabvscNIMCwjrFcs9lujgJFu6Kz4BzdsY6jInIFMI9dbvRFcdXvEhsLc LAhGklkndUY3w76G3Q81CsH4CKNWTyRXjElijFVA8/euyRxNn1LjhDpdS+dRFPEUyQow 1NX7tg2fEbWjCCD0sfl/HOFH7USZLjb43cZhdSxDi0IPDs3eMyYhBeDBsCbA+J0nXHj7 pv/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oX3mRy9y; 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 c205-20020a621cd6000000b0062ae6345c72si371279pfc.397.2023.03.23.16.54.42; Thu, 23 Mar 2023 16:54:56 -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=oX3mRy9y; 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 S231190AbjCWXq2 (ORCPT + 99 others); Thu, 23 Mar 2023 19:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjCWXq0 (ORCPT ); Thu, 23 Mar 2023 19:46:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA0532201C for ; Thu, 23 Mar 2023 16:46:25 -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 6393262906 for ; Thu, 23 Mar 2023 23:46:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75A21C433D2; Thu, 23 Mar 2023 23:46:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679615184; bh=c6QPeB80q9C6lJ8ZYENe4qJTNGL5v9atXIzxW8tPIuE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oX3mRy9yzTNA7RomAvUE/dxLlsp/pfSAr1P+feV4iffih+/Gq7gge8hY/55UuQcHK Btan7uoTrlOJLud1+8Pd5tXWfvloYVSHPY0yTT4prkyDiPm3U06TaraTwrBOe2eKs5 +W85JbXD1O6D+LiLRHxW9ggzWWPybTqV2oQ+hc30MYli6RLygOIeP/OE3GU1W6yln8 S7WFE5+lDInvQDLx60JMhSKbZS1Vx3AwQgeYoY165ZTPO768/hwW5xWBGr4EvwWDDz b+yyzHibz1qjNNGec3QPTrxj6VhGVaUsjRqDu+JZuY7LrrPHASb9zNTtnPw+LSP+xF SwzreOjjydOXw== Date: Thu, 23 Mar 2023 16:46:22 -0700 From: Jaegeuk Kim To: Damien Le Moal Cc: "hch@infradead.org" , Aravind Ramesh , "linux-f2fs-devel@lists.sourceforge.net" , "hans@owltronix.com" , "linux-kernel@vger.kernel.org" , Hans Holmberg , "chao@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> <402cc90ce5defa81c937c3fcd09de1f6497459ee.camel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <402cc90ce5defa81c937c3fcd09de1f6497459ee.camel@wdc.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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/23, Damien Le Moal wrote: > On Thu, 2023-03-23 at 15:14 -0700, Jaegeuk Kim wrote: > > 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? > > Surely that is not the case with LFS mode, doesn't it ? Otherwise, even > buffered overwrites would have an issue. Zoned device only supports LFS mode. >