Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3018207pxk; Mon, 7 Sep 2020 00:06:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2ZeYQfZT9GMB3D7qAO6mlmsvTgdIWeZbm2uPjHiI4lt32j12RZf0ayOuMpgNHg73SWgo+ X-Received: by 2002:a17:906:95d1:: with SMTP id n17mr20332495ejy.324.1599462409467; Mon, 07 Sep 2020 00:06:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599462409; cv=none; d=google.com; s=arc-20160816; b=q98tk28alNzpKzZnga0WSvr043XMi3MJDpNXnoKWiqmuTfOIHa/t8hR5xEyzHs392w QEPPD4nHEfcmHffr8TC2Wl41uUrzlGqQgxpsNvD71oL5wGfbnLyq9zkwK0qrH6p8rkMr HpjSQjS0lnvhHq4hB3+zg9QfCdvSIvoDWX6Ah1G2CN3uZ0Qw/XeQs+ND16YPTv1fP4ED CQ0pNSSnNe2BzmP4YBAP6OoTiF65HPFegNdqxoDADIm3dYdidNc1La3Y5moslQ9yktwv +2jD98nNehPLSV5eYJGy7zf68tFYhtkpFwhQ7kjY9nW+fyVQv0uWQ79MnFrz3My2I7Yg u/kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ylv/Ec3IQY/nRnVl7KUf4rlIbzcbzilcAdfCxVxqCdM=; b=0Ym8nwHqyJOe/kCS0/WYF7XTfzNV3+6B7IIh3+nGxJh5Gx2ng0ZwcFWLtzOHyXBjhe ueOCXAUuDyVcD+OTIDw0EmDcRuCuE1kqc7VIWrNWSH8s+Lu7tZgV9YDgUJT7Zde8QsW9 PSFlWeFRCH7JOhPiORNWFS+igBkIkWKrb/i9B+Go3qy2G5VcVU0BrG0SF7IkM+JBqQ0p 9DswrtbE0xCwZekRh06NE53KKaxz2JPTEzGe83NUTfbO8vqPkqm+1j0SKi9vhwK7U/Lx 0fehaRsCNgXdysDFVgd4xfmhLGIebnxq/uiII3rPYd5f3jHW+k0vUtCfLLXNX0vluN7/ dHBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eGZAavdZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si9280243edp.272.2020.09.07.00.06.27; Mon, 07 Sep 2020 00:06:49 -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=@gmail.com header.s=20161025 header.b=eGZAavdZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726762AbgIGHCe (ORCPT + 99 others); Mon, 7 Sep 2020 03:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbgIGHCJ (ORCPT ); Mon, 7 Sep 2020 03:02:09 -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 8BE63C061574; Mon, 7 Sep 2020 00:02:08 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id g4so14563479wrs.5; Mon, 07 Sep 2020 00:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ylv/Ec3IQY/nRnVl7KUf4rlIbzcbzilcAdfCxVxqCdM=; b=eGZAavdZlKtcT3lSWI7KautQwycdwOhhWwW/QEDVhWUcao0t3/TnmTEfUdfslBudpC 8nOaO+bFIkEwWAZNjSOuhZ6S26BDST+w8i732lh7nQ3kIYL04wbpYO6FdH0Xvm/2JWaJ ySiPaxUHkEGfTtRKfTj2b7T2yXI56gul9vy5dixsvYnOcR6BLkNU5NcTV5022OWDUrso uPL9AKxRJWrPp+jiZrtrq8sEq5j4iSINePJYRZ86f9QwUqYx7XzAfdVcV+/qz1oqvkxz NHic36LO7xaBXZ7JXPidaQ6oPLkn4BoGtaSdmOAQohYSiqIQdzMaGTWbAUJrsDHKZnGF B4dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ylv/Ec3IQY/nRnVl7KUf4rlIbzcbzilcAdfCxVxqCdM=; b=kQUDjwR2DxLPzrntfzoR9k/MdjyFt6rlbGZtMCSw5Vt9VpyCtCFFU4semoqizrrweQ VUypzNBmKZDVrMZmd0EGCI9UnRTGogBSVjnBKhcbYs+0xk6B9KoC1fpGQ+xIDTLL8QLR 2mmrM506vf4qZylzZJVelTBeQyroR0tfryYQtBu0eDUUtTNLc0DnM+MDLU0kszCDO+l3 kZO8cmvGqknukajxJFLlc4u363sH1KpSSVcSnpMwvPVYZ45x9OsHDHJa9qcrTikGFVfE xabPK9yEfFvwddCm3whbjkjFAZiMoCR2g6tohykE9gAsB1qX3q87x8LNADmgFN3d74U0 w4yw== X-Gm-Message-State: AOAM531PTa1voJrZuf1Y/KWhLy0ldCfaU5mGR2l7OoP42nrrKS+7iTY9 oeOhqr243+cKS7HFCjoQZR5E+ochjg20EumOTlU= X-Received: by 2002:adf:dd51:: with SMTP id u17mr19759514wrm.355.1599462127129; Mon, 07 Sep 2020 00:02:07 -0700 (PDT) MIME-Version: 1.0 References: <20200731064526.GA25674@infradead.org> <20200731091416.GA29634@infradead.org> <20200731094135.GA4104@infradead.org> <20200731125110.GA11500@infradead.org> <20200814081411.GA16943@infradead.org> In-Reply-To: <20200814081411.GA16943@infradead.org> From: Kanchan Joshi Date: Mon, 7 Sep 2020 12:31:42 +0530 Message-ID: Subject: Re: [PATCH v4 6/6] io_uring: add support for zone-append To: "hch@infradead.org" Cc: Damien Le Moal , Jens Axboe , Pavel Begunkov , Kanchan Joshi , "viro@zeniv.linux.org.uk" , "bcrl@kvack.org" , Matthew Wilcox , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-aio@kvack.org" , "io-uring@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-api@vger.kernel.org" , SelvaKumar S , Nitesh Shetty , Javier Gonzalez , Johannes Thumshirn , Naohiro Aota Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 14, 2020 at 1:44 PM hch@infradead.org wrote: > > On Wed, Aug 05, 2020 at 07:35:28AM +0000, Damien Le Moal wrote: > > > the write pointer. The only interesting addition is that we also want > > > to report where we wrote. So I'd rather have RWF_REPORT_OFFSET or so. > > > > That works for me. But that rules out having the same interface for raw block > > devices since O_APPEND has no meaning in that case. So for raw block devices, it > > will have to be through zonefs. That works for me, and I think it was your idea > > all along. Can you confirm please ? > > Yes. I don't think think raw syscall level access to the zone append > primitive makes sense. Either use zonefs for a file-like API, or > use the NVMe pass through interface for 100% raw access. But there are use-cases which benefit from supporting zone-append on raw block-dev path. Certain user-space log-structured/cow FS/DB will use the device that way. Aerospike is one example. Pass-through is synchronous, and we lose the ability to use io-uring. For async uring/aio to block-dev, file-pointer will not be moved to EoF, but that position was not very important anyway- as with this interface we expect many async appends outstanding, all with zone-start. Do you think RWF_APPEND | RWF_REPORT_OFFSET_DIRECT/INDIRECT is too bad for direct block-dev. Could you please suggest another way to go about it? -- Kanchan