From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAD88C433E1 for ; Mon, 20 Jul 2020 13:47:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C30F22B4D for ; Mon, 20 Jul 2020 13:47:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726675AbgGTNrU (ORCPT ); Mon, 20 Jul 2020 09:47:20 -0400 Received: from verein.lst.de ([213.95.11.211]:47041 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725792AbgGTNrT (ORCPT ); Mon, 20 Jul 2020 09:47:19 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9AD6768BFE; Mon, 20 Jul 2020 15:47:17 +0200 (CEST) Date: Mon, 20 Jul 2020 15:47:17 +0200 From: Christoph Hellwig To: Damien Le Moal Cc: Christoph Hellwig , Johannes Thumshirn , "linux-fsdevel@vger.kernel.org" , Jens Axboe , "linux-block@vger.kernel.org" Subject: Re: [PATCH 1/2] fs: fix kiocb ki_complete interface Message-ID: <20200720134717.GA3908@lst.de> References: <20200720132118.10934-1-johannes.thumshirn@wdc.com> <20200720132118.10934-2-johannes.thumshirn@wdc.com> <20200720133849.GA3342@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Mon, Jul 20, 2020 at 01:43:43PM +0000, Damien Le Moal wrote: > On 2020/07/20 22:38, Christoph Hellwig wrote: > > On Mon, Jul 20, 2020 at 10:21:17PM +0900, Johannes Thumshirn wrote: > >> From: Damien Le Moal > >> > >> The res and res2 fields of struct io_event are signed 64 bits values > >> (__s64 type). Allow the ki_complete method of struct kiocb to set 64 > >> bits values in these fields by changin its interface from the long type > >> to long long. > > > > Which doesn't help if the consumers can't deal with these values. > > But that shouldn't even be required for using zone append anyway.. > > > > Not sure what you mean... > > res2 is used to pass back to the user the written file offset, 64bits Bytes > value, for aio case (io_submit()/io_getevent()). The change does not break user > interface at all, no changes needed to any system call. The patch just enables > passing that 64bit byte offset. The consumer of it would be the user > application, and yes, it does need to know what it is doing. But if it is using > zonefs, likely, the application knows. Please start a discussion on this ABI on the linux-aio and linux-api lists. If we support that for zonefs we should also support it for other direct I/O writes. And I'm not sure an API that only works with aio and not io_uring is going to win a lot of friends these days.