Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp258616ybt; Fri, 19 Jun 2020 00:58:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI3A8vTBkAC3i2EJnlrdtS8BqNvbZsk1/jyBcQHj/8xh3+MDjtLx6wpIxiyR0TBVvuKbTB X-Received: by 2002:a05:6402:228a:: with SMTP id cw10mr1924414edb.147.1592553537425; Fri, 19 Jun 2020 00:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592553537; cv=none; d=google.com; s=arc-20160816; b=mj7Fri5cLzGR+JuEgBjC8+z9x0LQSLwv6f7Ber7w9SVfQh8igSSs+XYJEjqreNzX5D KC//NSQAjnxx+Voo+ZUg9vWZHesqcH/xFeX2+cpf9OUXuUeWAj8JyzIyduGQrarRdksi DvtjOpuAduhKEmLJxpONKrK9bSuCTGqHYl8fPuiXLeAElv/ezLQNgtvLLCU8uothGBYF Y9FGzNhNZvZhLTwQ+JqOe0EH5n7pIgIjKPcXBLziovJ74Sxav4JKWr3sJPSXJI9K7Vjv BVb202i9VSuCo2j4T5bWo07bbF9mB3zNWnhruBQPR+6EmECIENH5mtueKeaNhT2H78hM z9Qg== 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=+6lPoVcKNlDZ05zKLgAxZCl2a/rH2CM1rj4HgNIEc9s=; b=rhmN6eZCQa0jq3E/JgtCPiIuROJ2WoOV5o5lF7JSzHueWWoEWzJ34Xl5LMv1/IFyNr 2AfRG2E+qXO/7iP2HujfTA3NI+sidAuuhTf49fsd29GzE2E44FkKqjhqE67tcqmdUiAG Fn1sakpYX7kZBDkwF8rRntt44spmHh78Ex+91u/cVgmmDAhV/N6C+dt2U2To1JMjRunb Jw6k5KcJ73eOlNPRNA3biQDvgtW+oJcmA4pFslzkiCRARFSP1pD4hiwByCPuRgLJir6k iWQyebuD2Or8/fwfyhL5rMcMdkB5CE2eLQLO43RDkzTztHPC2rUp4hL14SVCrhrGZmsx sJ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lblZEhu1; 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 i2si3348520ejr.278.2020.06.19.00.58.30; Fri, 19 Jun 2020 00:58:57 -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=bombadil.20170209 header.b=lblZEhu1; 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 S1730958AbgFSH41 (ORCPT + 99 others); Fri, 19 Jun 2020 03:56:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730875AbgFSH41 (ORCPT ); Fri, 19 Jun 2020 03:56:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79B48C06174E; Fri, 19 Jun 2020 00:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=+6lPoVcKNlDZ05zKLgAxZCl2a/rH2CM1rj4HgNIEc9s=; b=lblZEhu1fj4HGfeB9rhLnm35e9 3s57GAEQfeYx9h5CBtLLPeAfKEWKCz18DZbbPCosACUyBaHUXmzsIVHYCRGJVPG9fd8muPAzgwPu1 V/71pp368G0BLs+SJP1MgF8kDjX9G90M/thlJtpGLGS6/TUykwIDqd0wDpgWHY4LmSnrbOJwFkW1u bmIqEbVSMPVmLVAbNEJ5TT97yQsdSJgNJgeiBPRVLvomB3zVX+sRq5JZ18lk3/mWl7wLGKMGBZxPo lC7rsgOSIPzShQNsWEImEJA6EBemQePknjzZd+JcfY94JHq401SFPp4B4rNlvgjY1ed3aLR1jCiWB Xru8sLrw==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jmBsq-000095-Sv; Fri, 19 Jun 2020 07:56:20 +0000 Date: Fri, 19 Jun 2020 00:56:20 -0700 From: Christoph Hellwig To: Kanchan Joshi Cc: Christoph Hellwig , 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 Subject: Re: [PATCH 0/3] zone-append support in aio and io-uring Message-ID: <20200619075620.GA20581@infradead.org> References: <1592414619-5646-1-git-send-email-joshi.k@samsung.com> <20200618065634.GB24943@infradead.org> <20200618175258.GA4141152@test-zns> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200618175258.GA4141152@test-zns> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.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 Thu, Jun 18, 2020 at 11:22:58PM +0530, Kanchan Joshi wrote: > I was thinking of raw block-access to zone device rather than pristine file > abstraction. Why? > And in that context, semantics, at this point, are unchanged > (i.e. same as direct writes) while flexibility of async-interface gets > added. > Synchronous-writes on single-zone sound fine, but synchronous-appends on > single-zone do not sound that fine. Where does synchronous access come into play? > > What could be a useful addition is a way for O_APPEND/RWF_APPEND writes > > to report where they actually wrote, as that comes close to Zone Append > > while still making sense at our usual abstraction level for file I/O. > > Thanks for suggesting this. O and RWF_APPEND may not go well with block > access as end-of-file will be picked from dev inode. No, but they go really well with zonefs. > But perhaps a new > flag like RWF_ZONE_APPEND can help to transform writes (aio or uring) > into append without introducing new opcodes. I don't think this is a good idea. Zones are a concept for a a very specific class of zoned devices. Trying to shoe-horn this into the byte address files / whole device abstraction not only is ugly conceptually but also adds the overhead for it to the VFS. And O_APPEND that returns the written position OTOH makes total sense at the file level as well and not just for raw zoned devices.