Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp526543ybt; Fri, 10 Jul 2020 06:10:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFYkekNaSHtiyzhP4yPoJVa9bwlhwmq4VM1A2TrugZ7j2uyNl5HpqMWU6lTMv2JUVs5kcv X-Received: by 2002:a17:906:408c:: with SMTP id u12mr54410250ejj.162.1594386607614; Fri, 10 Jul 2020 06:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594386607; cv=none; d=google.com; s=arc-20160816; b=HhF+gQYIJYVYOAlKU1RLRrX+p26RCyT5OPHDwYN9SFwlZ0mj/4cAImV5QbQ0H+COVF ZdKE4BUbXXuZOaPnx8Rs053868GcJ9rb2bbLhSoYtNHKD1BxsCoSoad6BLQacAtSNEFP hLdZbxkAWRbG89Q7F5/0x1V1NFo03qWDyCzQF1Qc9FdvJ7kT6sAyLZjRUf7EHfwScV+B Oaldo7H7Z0ceRFu4bpwCrYGKGxvBr58ojSBkGjV+tQZklRrnKSfrZtIivVgjWhv55k2h yGXaopyCaGnr+6rD10liYeHVespGYqfwmwxAd/X8eJ2glHhii7hP3HA4+TlaxmYTLhpD 4v8g== 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=NZEm5kzXLSFX2uBu54Q0aqlOoQJepX9jlZjRW+QQTkw=; b=tkh7x7NDdIOZoGLvd1AWAqz3qdYKWxuO8EeS9pAwm13bwv2/2KijkhM6XwMlQkAiCQ 97fnSzxRi96RDHIk5pTAtjQBTNgXoLPtfYR9SQjnQ1iffU5QstAS5Z7fBH7hWQo7E7i5 4PEGebX/CzKHyCZedfsvXLSdu/4zwITZqNeEoEI33WRRpIEQjwNbafOcrUMwi/XKm5PQ UMErfQysX8Mc6sgpKMvCcyMFuHbZ3fGdpsoSj1rFW4JCv7eznll0gZVMv5LQ9HjwDpul LiWVxpDNm2h4d59wA7s2H8xspAdrI+cCfnbETS05p95xjznetN9IsMvyVQH8yRFKy0aq 62Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=tr6Eaqfm; 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 a15si4544538edn.210.2020.07.10.06.09.44; Fri, 10 Jul 2020 06:10:07 -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=tr6Eaqfm; 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 S1727038AbgGJNJd (ORCPT + 99 others); Fri, 10 Jul 2020 09:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbgGJNJb (ORCPT ); Fri, 10 Jul 2020 09:09:31 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3EEC08C5CE; Fri, 10 Jul 2020 06:09:30 -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=NZEm5kzXLSFX2uBu54Q0aqlOoQJepX9jlZjRW+QQTkw=; b=tr6Eaqfm9KyxXHuJMhAte2ZWyv aVsZJEWGYxlDflnFN4o7pToRfOf2n3IgeEy9QK+jOxSUH0v6L9rNedztx5aw2zYTrGcRzPrR4eROj Ek+Ub/VhMABoNVTenSTaf524sNeUiWS5MiA7EqjQw6ppbOyfc7fzB2KorQNu3s5+wgF1dP6JCSlHY bjDNfOO6JS4T4XL8+yUwKU3Oxuy2mASVyYxVouUPt4VPpz6L1J4bMtMOCl4ejE/e061xHf7G4aOi5 yA/koxNGruZrjBLNKp4qg2UDUelZV9PpNAzuyUK2O6rtoG0L4HV3D6Z2na03mPGQRKQQq99yry4Bf jDHufJqg==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtsm8-000266-Hp; Fri, 10 Jul 2020 13:09:12 +0000 Date: Fri, 10 Jul 2020 14:09:12 +0100 From: Christoph Hellwig To: Jens Axboe Cc: Kanchan Joshi , 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: <20200710130912.GA7491@infradead.org> References: <1593974870-18919-1-git-send-email-joshi.k@samsung.com> <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 Thu, Jul 09, 2020 at 12:50:27PM -0600, Jens Axboe wrote: > It might, if you have IRQ context for the completion. task_work isn't > expensive, however. It's not like a thread offload. > > > Using flags have not been liked here, but given the upheaval involved so > > far I have begun to feel - it was keeping things simple. Should it be > > reconsidered? > > It's definitely worth considering, especially since we can use cflags > like Pavel suggested upfront and not need any extra storage. But it > brings us back to the 32-bit vs 64-bit discussion, and then using blocks > instead of bytes. Which isn't exactly super pretty. block doesn't work for the case of writes to files that don't have to be aligned in any way. And that I think is the more broadly applicable use case than zone append on block devices.