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 B8BF8C6FD1C for ; Thu, 23 Mar 2023 23:46:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231217AbjCWXq3 (ORCPT ); Thu, 23 Mar 2023 19:46:29 -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> 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. > 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 lists.sourceforge.net (unknown [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 15B26C74A5B for ; Thu, 23 Mar 2023 23:46:40 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1pfUdi-0007dd-8p; Thu, 23 Mar 2023 23:46:38 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pfUda-0007dV-UH for linux-f2fs-devel@lists.sourceforge.net; Thu, 23 Mar 2023 23:46:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=R18BnHoMtJya1e0yyrgq7uYGd8BC0MMY1ic7PwCLQfk=; b=Z319WaGKTr5+88+x5Rk5TxrK/y 39pODL7OTlWix2O/xFikXaVw7d2Gqx4xOoOyxfd3VYWBakZr0piAE2MCSDdgmKOQrWYjb7ON8H/UH nrQQueoUOihfZ59ph1Yh1deu4FpPb2xixhrpccWpGeMCnOAyTb+WBauUWhqNn9QXsPOo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=R18BnHoMtJya1e0yyrgq7uYGd8BC0MMY1ic7PwCLQfk=; b=D6VyPxSrpOTrKAM8vD9TdkRSyy t5v4y3VOl1TSVHQlPg+ssGlqs6UhGefdvYY3But8N/z29lAkexQkv8JveV+MsKB+VjeGuDNdLgabb NGU6kQjCneALGALT3lUXMEvf8A/6H12Hs+NJMmASknxGksyBA6wctKurhGdlcmOxw3Gk=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1pfUda-000p3e-Nr for linux-f2fs-devel@lists.sourceforge.net; Thu, 23 Mar 2023 23:46:31 +0000 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 559D3628E3; 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 Message-ID: References: <20230220122004.26555-1-hans.holmberg@wdc.com> <402cc90ce5defa81c937c3fcd09de1f6497459ee.camel@wdc.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <402cc90ce5defa81c937c3fcd09de1f6497459ee.camel@wdc.com> X-Headers-End: 1pfUda-000p3e-Nr Subject: Re: [f2fs-dev] [RFC PATCH] f2fs: preserve direct write semantics when buffering is forced X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "linux-kernel@vger.kernel.org" , "linux-f2fs-devel@lists.sourceforge.net" , "hch@infradead.org" Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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.=A0 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?=A0 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. > = _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel