Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1414606ybt; Thu, 9 Jul 2020 06:35:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQEQ1SVjq9Nd7s1TbIS8JwiLkOsDXYyYoHg3+l9eDn/+k8zAzuJYOibdJfNXRPZ5wxv6E/ X-Received: by 2002:aa7:d845:: with SMTP id f5mr70367155eds.162.1594301728155; Thu, 09 Jul 2020 06:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594301728; cv=none; d=google.com; s=arc-20160816; b=0cM0fz4NLqR9enhKlIFPfIykUkyHoSUr2Eu/4jdD7ozsQ4MQizSvKHKMJquPqMZDrP i+4OwanrLq03GuWZMsPKkgjuDNOfm1EAjTsfXxabCmRsZVt0yEsExPdEZIpzwe2bpa0r xXFENaByq+AwdqGhB6+vgpVraWPlPvfSHQX5HD073S6/fg6HqVWGri2FdnJwqxshpuZ0 w0c5fifmtL6hrvJLEg6L1qfKhU1Dv83DM585Em3j9pYyv1vSqMDaXcIIiuFqHSY5H2Qy Yo2iKjp6w6QEzWBBpNXN5GI+AHwFhly0w94ozoE67JsmDoP5lUWgBI8Kjh44TWy9cSEw JBPg== 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=0gGNHKM2ZqkJaYiaW1AZt7LL2IetnqBy8kFTuQiL4bo=; b=afAmEq06e3EbhodIvtcNs/w245HZ/RzWLRED3lL4ECzafyNnRPOeSbpwWAQQ2v9oqy fLvj58gJno/IVl3ZxWHjNtuF2CLXHmHqp2JSZGqBPYEc8Pzz4ZKCQ5yvqM+t5yvBPzS1 hWmgdgeWZVuy1OeptlCq7AyZEFKmodz9Mu2IiITfkzmVHQdnYskOUdLhpc1Wy3FVH7Lf 0TAOWskN01dpxGUg7V1QGRyuL0IzSsfgJW94DMamKGWLVPPwhjjJnDF0nYJ9/OkMcgR1 4FYul5WTws/q0g7JSbGCqLP0lEbzwr5baWbNncfBqXVMemwfsUI8D+DaOj4DkOcTWLH5 Elyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=MiBl3pGL; 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 br6si1879122ejb.203.2020.07.09.06.35.05; Thu, 09 Jul 2020 06:35:28 -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=MiBl3pGL; 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 S1726872AbgGINcw (ORCPT + 99 others); Thu, 9 Jul 2020 09:32:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbgGINcv (ORCPT ); Thu, 9 Jul 2020 09:32:51 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91ECDC08C5CE; Thu, 9 Jul 2020 06:32:51 -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=0gGNHKM2ZqkJaYiaW1AZt7LL2IetnqBy8kFTuQiL4bo=; b=MiBl3pGLBwpSRcWZyz1mS/fd2N kjJ3uFquSnFMed6RZRnkiKVo1YzgxY8yEP3Ixuu4t54iAWc6ELxgTFFvVi/7N9pZDGfuug/ymK9d7 VBIDZw/zLA4PhSCql5x3y4vLCkdDKm9BbjwnPS0oInR7JyKJQTqPgFrEh7j75RH/8+4eFJ3aadMM0 QtrtaXPhgetei4O8IWo877ozl1QPEWR51VkR91KYF03EsIrNyJTPzcy7korpcTmV1gZmmyeab/Vko TYnlSXWMQ6+2R5xsOUGp46HdIyp5bq1229BB0/IXXlS369clZOi+Bbu23PYiIRfnHRU6/mD0QJa2I AM7uvYOw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtWfR-0000qC-As; Thu, 09 Jul 2020 13:32:49 +0000 Date: Thu, 9 Jul 2020 14:32:49 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: 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: <20200709133249.GC12769@casper.infradead.org> References: <20200708222637.23046-1-willy@infradead.org> <20200709101705.GA2095@infradead.org> <20200709111036.GA12769@casper.infradead.org> <20200709132611.GA1382@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200709132611.GA1382@infradead.org> 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 02:26:11PM +0100, Christoph Hellwig wrote: > 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. I agree. Jens doesn't.