Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1159466ybt; Tue, 7 Jul 2020 09:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX1mvqcUzVmh9djIk0ioTYUBz2V4MxkJB5IfODNF6DBNNl2dUMj7N3Bzh0lv2njbVHyjDY X-Received: by 2002:a50:d1c2:: with SMTP id i2mr60395741edg.42.1594137818612; Tue, 07 Jul 2020 09:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594137818; cv=none; d=google.com; s=arc-20160816; b=PGrAH0CR+dvr3JNaIDau3VvFLS15GxB39aJj4Hn4antqA1Mgm//OkVnKXi2S+VPsHS ft1Ns6DpRjmJ2oyjYaDW0tNTqJOxO+1B9RUrvSE2tyMQim2gp8ir3VtJMwwSUG3mG/3J Tp3h3QbaMY0VA/q9DJJWHBA1CUC1oqaCa2gxYJCaWwcdC7dwqefat/ysRFWmwftHrHj8 REWmrplxCTfpCdbEhTZDiehn5LVzBcpAAYeneD/2urFXtc6mCK3unvehSLJ0BZvjxkEr 2jODMJrmszQT+8EnuCGUA7WsEZrTyJ1rrcP2YbrroLb7QjK+gmp02BjMX1i3DktaMaqr 9oLg== 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=CP3gYZf2kjid72TDwJavn73cb81r67oVs6dPbA5sJrs=; b=u0+UnayyBSuK0gLWqKe4rpipbE0kKm0E41pWWdoeh8VGIqsmeFfjkVQIvAkBd/2Mk1 qxFTSiPUOIr6OPCU3wQ8tnqKFcgxYRsXLygg6XnhU2GVaYUAPH9WxLfx8vX739BxVUaf RN8mVnBzHmzlEwTD9Y1daTQ9IwSfFk4oQWUE0fCayER+6pGP7Z9KAhXUDQaZQByxNUSs dkZX8bu4XDrPSL5ooIzKMpgOP3tdBjFZ0+pKp5BPKi4xG7z+Ph7bPdz6uqGBcckjbTqF oUcLSUx4jDq4reI9W+IfkyLkXulWfaJEm6+szaj/YZG0782KDlZ1FR8IVB8DXVLNUom/ EKDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=TbRHDWpq; 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 d14si14223455eje.95.2020.07.07.09.03.14; Tue, 07 Jul 2020 09:03:38 -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=TbRHDWpq; 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 S1728568AbgGGQA2 (ORCPT + 99 others); Tue, 7 Jul 2020 12:00:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728216AbgGGQA2 (ORCPT ); Tue, 7 Jul 2020 12:00:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7AC6C061755; Tue, 7 Jul 2020 09:00:27 -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=CP3gYZf2kjid72TDwJavn73cb81r67oVs6dPbA5sJrs=; b=TbRHDWpqod5158cU9VcuMxtMl0 Z3G0xtpcqzLIuDWWIIcnh9C2kh7CSkV4JSSIDwUSlxfQPTygt0gA5KxoHykWQL/VPT4vSar/6D1cN PMcSCdozGP0IE5ZVMVpYGkR977gY7lsrqkoMBm9jaMYhaXJARQRMx1rid9CVnNEfJUj1vQzKN4wTX 7y3w/+jqw3v9t7nHICdR7mfHK4r0EP1k76le37z5fmFaacVj7SkSAzzQt+zdxOGgLowaUoqsgP5gF H75mhPzCgNzP6m6muIchhmbWsuB2N9uFrb53OUci0eYLguPFPhNq0038c46l9d5VckBbvuMQ3n6kU jSLu7JTw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsq10-0006dx-SQ; Tue, 07 Jul 2020 16:00:14 +0000 Date: Tue, 7 Jul 2020 17:00:14 +0100 From: Christoph Hellwig To: Matthew Wilcox Cc: Kanchan Joshi , Jens Axboe , viro@zeniv.linux.org.uk, bcrl@kvack.org, hch@infradead.org, Damien.LeMoal@wdc.com, asml.silence@gmail.com, linux-fsdevel@vger.kernel.org, mb@lightnvm.io, 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: <20200707160014.GA25189@infradead.org> References: <1593974870-18919-5-git-send-email-joshi.k@samsung.com> <20200705210947.GW25523@casper.infradead.org> <239ee322-9c38-c838-a5b2-216787ad2197@kernel.dk> <20200706141002.GZ25523@casper.infradead.org> <4a9bf73e-f3ee-4f06-7fad-b8f8861b0bc1@kernel.dk> <20200706143208.GA25523@casper.infradead.org> <20200707151105.GA23395@test-zns> <20200707155237.GM25523@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200707155237.GM25523@casper.infradead.org> 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 Tue, Jul 07, 2020 at 04:52:37PM +0100, Matthew Wilcox wrote: > But userspace has to _do_ something with that information anyway. So > it must already have somewhere to put that information. > > I do think that interpretation of that field should be a separate flag > from WRITE_APPEND so apps which genuinely don't care about where the I/O > ended up don't have to allocate some temporary storage. eg a logging > application which just needs to know that it managed to append to the > end of the log and doesn't need to do anything if it's successful. I agree with the concept of a flag for just returning the write location. Because if you don't need that O_APPEND is all you need anyway.