Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1623048ybt; Thu, 18 Jun 2020 13:07:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPvKlkHC+Z/16X5aELsXrjBtO2KVWhNCLkwA+G7fp0BD3uVTWrgiZh6XQIGshcssemB4vv X-Received: by 2002:aa7:d613:: with SMTP id c19mr5602821edr.321.1592510874633; Thu, 18 Jun 2020 13:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592510874; cv=none; d=google.com; s=arc-20160816; b=x0yHNXnr+mapRsW2x6r3UIijW4oaE3nv1E+wgVBE9QEh3StA7YF2dwJapWd7cbMP+W sEBLTXRKE2OS97A8mi2G7s8awLHA0kbYMqFZ7Z567ZEE9o45IShhTvO0uXNPu6BjH941 +AQP1Ws3iNhzTFyQANCi52rWVFfxue6Gt26uR5G59CTUZMGNRxFfTS9IcakecLXG/KWu KN0YIL0aDis97HGkTzGsvCw+R+votrIKXKrs00CDsALmkH/51jSg86/TRR9wqdQThVtd qhUiJ4nsbUxeUfDXjv2jqI5cdDfGIBFbe1TAtY0vG3BoO6UyAXVSUOVtUPZHQMxkiOeJ SNjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=I1X5PgsyDNPZk5OWUMSkw5d9tqtI+lNZgxN4Rtom3J4=; b=S+fqfRU81DoPuxtjhpHxFTsdSRrHAh3mWVx/D+EuiVfwc2dYCoL+lDZk06/nebYLqG JBfDMMQmSpT7wLpUolTazLFQzBqlwts7EIQH5YcVfZVFtDDa8xeky48U/nGxeIC8yfGC ioEw9o2ewm1rT3Z1w8BTwHFyatkut0Hx9Erm8YHhGwyH0j/uBduonU/uVYsBk0dpB/eG uIegrT1BBsGLV7Cz2iXUBjN40MM1FGYHFpD0bAh9Regbn/ZcP8xyYe5+Ex3WXxR0USaW G856YIRjwpy+jxfudhS53pvCsTxzNUFZUqRJhG90xealEwNWKGRh9O26vElektGZ9HDn 8AUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=2Gdw9yRp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si2398546ejf.570.2020.06.18.13.07.09; Thu, 18 Jun 2020 13:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=2Gdw9yRp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730886AbgFRUEe (ORCPT + 99 others); Thu, 18 Jun 2020 16:04:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730108AbgFRUEc (ORCPT ); Thu, 18 Jun 2020 16:04:32 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3176C0613EF for ; Thu, 18 Jun 2020 13:04:32 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id h5so7423337wrc.7 for ; Thu, 18 Jun 2020 13:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=I1X5PgsyDNPZk5OWUMSkw5d9tqtI+lNZgxN4Rtom3J4=; b=2Gdw9yRpfZxYdJPIxo9vBo6m73ZCsO3/13tXY2w0ZeHHFdt4gSwy/htURFqSmKf4WG Vcu9QN/YTZ8yD20PpRBi2W1z9zQBycqw9+em7uYgosUj77O6ve0zOSJs284LnMXdtYhn raSPvaaJmx6EOie8eiwOIaUwDTyRibfq+uyl0nMTuqAj04owC7YOwYJQGxu9i0SnmkzT 2VCWv0KyTnidlmyeG4wxlx3uYNHsIuFDXcCpRD0+tr2hg6Yjg8u33PjfrIqzNiZyCkoI oX5Mi2IywJXrc9KfaI9U+c895gh2SuZBZcFsJfzIBvxwGQrR4BHtcFQVeNUFXa81ZQ34 hG4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=I1X5PgsyDNPZk5OWUMSkw5d9tqtI+lNZgxN4Rtom3J4=; b=nR+OQm0vmJnWzpjFS31VLMtAFj+hLnT/O2eCyHIY/2tlpFgYv+vYXayp9G1R0RJ1aM Szq2EMUa3G+Kjp7ZkPQfkY61q097alAwgAkY39QSbp7RMtpduzk54NSzVulY4Bw+z+/X 2jKcfSBviYjZjxxQFpx4Jqx2E0Sy2siAPQ4BNzEos1QJK9/T4w7X+RT9tXgUmNCQENay X8NN/feqrQfnv4dEjqmEaW++UamqrPPd+yO5QctpfFL9ulQAnjqeueGoVLn1E9NmEkrS MGRalqzbQ6Mkw5FQHYjOfoeuWp43Yml5vPAzhV5LyJHQ9IFWEJ3LB8dmHesAytoyUErP kcUw== X-Gm-Message-State: AOAM530ph0kowbqctIofFTLPNvB3982NuHU/awPa7b6uthlL6hubOq2N vKyJXvp+nPL8gCUVuCdOlqAg2A== X-Received: by 2002:adf:fd81:: with SMTP id d1mr206028wrr.96.1592510670761; Thu, 18 Jun 2020 13:04:30 -0700 (PDT) Received: from [10.0.0.6] (xb932c246.cust.hiper.dk. [185.50.194.70]) by smtp.gmail.com with ESMTPSA id e2sm2750197wrt.76.2020.06.18.13.04.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2020 13:04:30 -0700 (PDT) Subject: Re: [PATCH 0/3] zone-append support in aio and io-uring To: Kanchan Joshi Cc: axboe@kernel.dk, viro@zeniv.linux.org.uk, bcrl@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, selvakuma.s1@samsung.com, nj.shetty@samsung.com, javier.gonz@samsung.com, Damien Le Moal , Keith Busch , Christoph Hellwig References: <1592414619-5646-1-git-send-email-joshi.k@samsung.com> <20200618192153.GA4141485@test-zns> From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: <12a630ce-599b-3877-8079-10b319b55d45@lightnvm.io> Date: Thu, 18 Jun 2020 22:04:30 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200618192153.GA4141485@test-zns> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/06/2020 21.21, Kanchan Joshi wrote: > On Thu, Jun 18, 2020 at 10:04:32AM +0200, Matias Bjørling wrote: >> On 17/06/2020 19.23, Kanchan Joshi wrote: >>> This patchset enables issuing zone-append using aio and io-uring >>> direct-io interface. >>> >>> For aio, this introduces opcode IOCB_CMD_ZONE_APPEND. Application >>> uses start LBA >>> of the zone to issue append. On completion 'res2' field is used to >>> return >>> zone-relative offset. >>> >>> For io-uring, this introduces three opcodes: >>> IORING_OP_ZONE_APPEND/APPENDV/APPENDV_FIXED. >>> Since io_uring does not have aio-like res2, cqe->flags are >>> repurposed to return zone-relative offset >> >> Please provide a pointers to applications that are updated and ready >> to take advantage of zone append. >> >> I do not believe it's beneficial at this point to change the libaio >> API, applications that would want to use this API, should anyway >> switch to use io_uring. >> >> Please also note that applications and libraries that want to take >> advantage of zone append, can already use the zonefs file-system, as >> it will use the zone append command when applicable. > > AFAIK, zonefs uses append while serving synchronous I/O. And append bio > is waited upon synchronously. That maybe serving some purpose I do > not know currently. But it seems applications using zonefs file > abstraction will get benefitted if they could use the append > themselves to > carry the I/O, asynchronously. Yep, please see Christoph's comment regarding adding the support to zonefs.