Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp528077ybt; Fri, 10 Jul 2020 06:12:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5yoGktQ+4NJ0kFTLJk5w/sOp6+YSRQWiSGpfnBkKuGkZX9k1ATgjtUM2m0JkNmke+YGNv X-Received: by 2002:a17:906:455:: with SMTP id e21mr63538896eja.550.1594386724147; Fri, 10 Jul 2020 06:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594386724; cv=none; d=google.com; s=arc-20160816; b=zn7zyhx+hyjVhpNjuXWVFi0LKmuc6AHCsAk/qtAW3R12VbImjths7R98n2t+Quc2GH 7mjrV10SVaiTXaTvqCdbVcxmr9DKfjlaiMzd6QWYLwUFb45Yq6IcuEgOzu03HITWH/SA FtwT3fqwS+KcKvhoyxJoFvFv22/3bqS6EnT8wzskrEGE8K+xz32f6K52XQkbItvlT5ZM 7w5CWhWkDqbnZrMCDYQmh6Ivysqhp24S4XdipDmDmupVZF8TjsxxkNRPeYMFMAVTFAHW K5m7DrK8iyZFg0kPRwjncohg0yiY/0s51WwsbfTdHTbeRBITrZFGpGFtvB21OG/mhiOc /mfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Cbpe7zSMdSUcQMT3p8w0i4/fAKowGRHHeGZ5ArJiJPA=; b=RUiDIIZWVkeoZUfDDnvkniSTNnc2WAOHT4hU4Q20l4ViC7Cio/Db8Ydfsmpq1J8XSa hqF6cbLlk9AK8J7F2e0Af7h9eSmzYKI+CjMphB2q9GHVPpC9gRjISg7mTHe00Djmx3vV KdCQLW2kYw9jMjXS7bbg5g5nDg8qVY6Xfay5N5q0KwyAJvbuCfDBVH315Hliyx2QM6gn VoHbu32S372Fz0H8FcchWohpOWvFdyw7PCAZPBCReHfTl+sA8r9zIe3gp0yxHVDtSNYc gIfqqZsatZ4E8/McD0ammw/kH5s2FKlUyPzeET/2YhFaUT+dZDzmr9QB+CFesk340SFA xLWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="guOL/xNZ"; 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 dn14si5112418ejc.697.2020.07.10.06.11.40; Fri, 10 Jul 2020 06:12:04 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b="guOL/xNZ"; 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 S1727915AbgGJNLM (ORCPT + 99 others); Fri, 10 Jul 2020 09:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbgGJNLG (ORCPT ); Fri, 10 Jul 2020 09:11:06 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 379D4C08C5DC; Fri, 10 Jul 2020 06:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Cbpe7zSMdSUcQMT3p8w0i4/fAKowGRHHeGZ5ArJiJPA=; b=guOL/xNZYChy5mK9TQkICadN1w G0xB8bU5w3TVfNTItcn2mdcu47Pg2WeF1uslEx8kYC4w0HdOVjuEJ/C76Va6eeTdyLZw1uAZZX7rp ZrY8oPeIbpf3nZzqzPk4pYoem+9nTFcTyRu/vq/8M2vHE0L68qTGWBdVYn61ixUhaTMhnMk7K4mWq X+BzUXvtWCVyrHIV+6qaqfcRkWKMp1JGJL/l1l96rGBeoGDp0CtbCo1eY5tZfQEntDMaIRDTNfnm2 +JSJAEvKhnLErSiNGy3D2P7x0dZQujCoGEhL12ieHVjv0qgS/ZRDJ+Dvu6Azvb7bgnFNyrNwsL3uA eAO+Q3ZQ==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtsnm-0002DE-8H; Fri, 10 Jul 2020 13:10:54 +0000 Date: Fri, 10 Jul 2020 14:10:54 +0100 From: Christoph Hellwig To: Kanchan Joshi Cc: Jens Axboe , Christoph Hellwig , Kanchan Joshi , viro@zeniv.linux.org.uk, bcrl@kvack.org, Damien.LeMoal@wdc.com, asml.silence@gmail.com, linux-fsdevel@vger.kernel.org, Matias Bj??rling , linux-kernel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-block@vger.kernel.org, Selvakumar S , Nitesh Shetty , Javier Gonzalez Subject: Re: [PATCH v3 4/4] io_uring: add support for zone-append Message-ID: <20200710131054.GB7491@infradead.org> References: <1593974870-18919-5-git-send-email-joshi.k@samsung.com> <20200709085501.GA64935@infradead.org> <20200709140053.GA7528@infradead.org> <2270907f-670c-5182-f4ec-9756dc645376@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 12:35:43AM +0530, Kanchan Joshi wrote: > Append required special treatment (conversion for sector to bytes) for io_uring. > And we were planning a user-space wrapper to abstract that. > > But good part (as it seems now) was: append result went along with cflags at > virtually no additional cost. And uring code changes became super clean/minimal > with further revisions. > While indirect-offset requires doing allocation/mgmt in application, > io-uring submission > and in completion path (which seems trickier), and those CQE flags > still get written > user-space and serve no purpose for append-write. I have to say that storing the results in the CQE generally make so much more sense. I wonder if we need a per-fd "large CGE" flag that adds two extra u64s to the CQE, and some ops just require this version.