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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0ADE9C433E0 for ; Thu, 18 Jun 2020 08:05:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D1C58206FA for ; Thu, 18 Jun 2020 08:05:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lightnvm-io.20150623.gappssmtp.com header.i=@lightnvm-io.20150623.gappssmtp.com header.b="H9uCyCXn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728200AbgFRIFO (ORCPT ); Thu, 18 Jun 2020 04:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728307AbgFRIEf (ORCPT ); Thu, 18 Jun 2020 04:04:35 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF10C06174E for ; Thu, 18 Jun 2020 01:04:34 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id q11so5018438wrp.3 for ; Thu, 18 Jun 2020 01:04:34 -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=ypYuYJigIb8VHCUtNcGOn99vAHuAHCA9hokHiE2bncc=; b=H9uCyCXnVKd0UETnW1mP2ouZ0DUuu32PQNmdlcfrlGc6dBYA1ssCtS5Og4ICZS1l3I BvkHo8b5cVnsKeMvyTo+6I+/jFfm0gyl71MZ8PtJfBR9wuswZ7K6fGKZzEH+NHLhgW2T 5Ehk1R4JTzGYy9trrQMRYcUeQ1UtMzHLL818OqTdBL5OpuMRiUEbCsUHUFN8BkJglFIP Rx7ucKs9q6j3PA1UFObnV46cmjSciUYjjaBELY5hjxPur2qhUWGPZfldonjbpRO4sLbJ Z45f0M+9d3OqaVz73ZDhBilGF4kzEKXSurss/hCfzLuEeybyqttBkYHEzKy0DF+7qoyR PCGA== 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=ypYuYJigIb8VHCUtNcGOn99vAHuAHCA9hokHiE2bncc=; b=JyucR2xAZkKeEts14hPv9O96RmnJKgj7HUIMRB2poTAnqSrSYzFux55fQ2ObWgHhKD n5Us4uSssemgnlYJOwyYzqq8Dhb4mJagJAzvrAgaBQLx+2pPFqzI4bTyAyJD0V35hLfw X+ZWVjaZO2iMWz4t1Wcdo8uPEuH4BlQ5ZVvfhtTX6PFOlo3/T0G7pQeNSSztKzKXKNTK aOGcr+O144XnSd8rPYXTAMXFvFjChrgPkPcvj5DKs53N9fDUXRHiWnPEjReOGcgrvE/h UXz1xY1E1DlrwF4zjT/55AZZv1xkWqT3qDHE1I4MDsBJlPcmH2IGUgt9SW+PNy9P0qeI c5Yw== X-Gm-Message-State: AOAM533iA0QC3dCiGbH/lhWL6ysl1xRbaDXIUM0e0TT0QeXoOfGuwdYR N67OW12ye8qhYcKZyhUTqFEPdQ== X-Google-Smtp-Source: ABdhPJy9kYbtxsS9p1Gqu9ZzDkGKhTVRMt8ZrKgQyjdOb0qD5wXvXTGOpcc9v04//KMjqkivzoMq0A== X-Received: by 2002:adf:db47:: with SMTP id f7mr3375855wrj.101.1592467473275; Thu, 18 Jun 2020 01:04:33 -0700 (PDT) Received: from [10.0.0.6] (xb932c246.cust.hiper.dk. [185.50.194.70]) by smtp.gmail.com with ESMTPSA id l17sm2439436wmi.3.2020.06.18.01.04.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2020 01:04:32 -0700 (PDT) Subject: Re: [PATCH 0/3] zone-append support in aio and io-uring To: Kanchan Joshi , axboe@kernel.dk, viro@zeniv.linux.org.uk, bcrl@kvack.org Cc: 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> From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: Date: Thu, 18 Jun 2020 10:04:32 +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: <1592414619-5646-1-git-send-email-joshi.k@samsung.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org 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. > Kanchan Joshi (1): > aio: add support for zone-append > > Selvakumar S (2): > fs,block: Introduce IOCB_ZONE_APPEND and direct-io handling > io_uring: add support for zone-append > > fs/aio.c | 8 +++++ > fs/block_dev.c | 19 +++++++++++- > fs/io_uring.c | 72 +++++++++++++++++++++++++++++++++++++++++-- > include/linux/fs.h | 1 + > include/uapi/linux/aio_abi.h | 1 + > include/uapi/linux/io_uring.h | 8 ++++- > 6 files changed, 105 insertions(+), 4 deletions(-) >