Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1407894ybt; Thu, 9 Jul 2020 06:26:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzFjyo8R5lMu8S4uMofOLCxElI/zAzsfkYyPYHC61h9YJ7X+5M/qnIiIA3paHXlc2Sg767 X-Received: by 2002:aa7:cf02:: with SMTP id a2mr72942274edy.263.1594301206959; Thu, 09 Jul 2020 06:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594301206; cv=none; d=google.com; s=arc-20160816; b=J0JzjdhIpazXGf+87i6mNlsoLxOW3u0T9xdZNMM8qv7/iywxahR6TGchcvyeC5Y6/6 0bDvLPfcI99RYzs8jBiuaqyTfDcmhwvI8kUaTwQO4SiGlFS8X7bvGNRftxiQ5V0I3f+U 6Z6FMK84mrQUWB50LppqdgiWsKNLk+nj8KJY54JCDhURDpQfOLbKmkIYpPOWMBhtnKRE tZjgzUmQoSU0wZSqefyykT3kO9iUijowb1p3fT5bZFZmiFkyf7j5GOiycAFFXlw+anH3 bQLjbg9HvTCYlkoiRM7l3PsDPPAx831y/wIrmKowSm8oMtod573pyYq6pv/sKNstL2d1 Tn+g== 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=3VK0PPpTgajPRvu6w9TsxcWut69QO/23qhJyuACRUe8=; b=FjSKBOYk+2qdv/uu4GOEL/nxMgeRfZ3MXaXgIPU8AYpoBDpuv4dsWZiGGtSY+zDzTV FpOfkySx/FtUa7tNt98Y6H790wVXxksw03BqDjvtnagtkDCGGTo6qw9S4H/gledkyvBM q4vMLesLI56wPnFUAmAU51NAeslDH9iaLUjyY0Z2YMQRA1F5Wl+mcb2tgrlGqA1l1fVI 48yNcuRfmmvRGBa4n7D0XHVgHJCv7QpmJH54D1eR8Znxctp7Wm3++luRewuRmo2OyMSk tCatcYjk4+z3bqJRh/4EwpJA+bjcljabIGF3PUJCbqDV9Uyg1ZedAfR9ewldtNH0cTfn CLpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=CrTKomoc; 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 a2si2374842edb.243.2020.07.09.06.26.24; Thu, 09 Jul 2020 06:26:46 -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=CrTKomoc; 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 S1727086AbgGIN0P (ORCPT + 99 others); Thu, 9 Jul 2020 09:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbgGIN0P (ORCPT ); Thu, 9 Jul 2020 09:26:15 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56479C08C5CE; Thu, 9 Jul 2020 06:26:15 -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=3VK0PPpTgajPRvu6w9TsxcWut69QO/23qhJyuACRUe8=; b=CrTKomocywcnC625URQttrWyQp jrEY1kIYXkOyUapLoHnqwuPYHbKVdz++upCTeYPIEJy8v+GPCC+5TFVDhoa+uKNSJfsENZ6eb0bU9 mWSNsbCasQsNFI7wkb2H9mGlIv5LYNU/aWzcDv7dqTPjxALYgHvNRjbBFWSV2Tv43861WpKM1+DSU jtGt2vhR99n0OXwoCLR95+xhHxWUVM5RiXBFHPGh0vT4Mss0uN1prqQ8XPvJCU0NQlu+echRWZ08m /pcLaJc0eoBlMJX5vsHAl8y7ReqBYLdkrGA9PqDdnGHGu+iWvLsJjTuliiA0E7jn8Mf3a1KcOyfO0 Q+RfNpDw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtWZ1-0000Xj-FX; Thu, 09 Jul 2020 13:26:11 +0000 Date: Thu, 9 Jul 2020 14:26:11 +0100 From: Christoph Hellwig To: Matthew Wilcox Cc: Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Kanchan Joshi , Javier Gonzalez Subject: Re: [PATCH 0/2] Remove kiocb ki_complete Message-ID: <20200709132611.GA1382@infradead.org> References: <20200708222637.23046-1-willy@infradead.org> <20200709101705.GA2095@infradead.org> <20200709111036.GA12769@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200709111036.GA12769@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 Thu, Jul 09, 2020 at 12:10:36PM +0100, Matthew Wilcox wrote: > On Thu, Jul 09, 2020 at 11:17:05AM +0100, Christoph Hellwig wrote: > > I really don't like this series at all. If saves a single pointer > > but introduces a complicated machinery that just doesn't follow any > > natural flow. And there doesn't seem to be any good reason for it to > > start with. > > Jens doesn't want the kiocb to grow beyond a single cacheline, and we > want the ability to set the loff_t in userspace for an appending write, > so the plan was to replace the ki_complete member in kiocb with an > loff_t __user *ki_posp. > > I don't think it's worth worrying about growing kiocb, personally, > but this seemed like the easiest way to make room for a new pointer. The user offset pointer has absolutely no business in the the kiocb itself - it is a io_uring concept which needs to go into the io_kiocb, which has 14 bytes left in the last cache line in my build. It would fit in very well there right next to the result and user pointer.