Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1428124ybt; Thu, 9 Jul 2020 06:56:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3HuYpsb21ZMjhHVcoB+i3FAGPjSI+uS2ETWv/8RPY8VmilHpHYnFd1eDRU6QZL0r3gVRI X-Received: by 2002:a17:906:924d:: with SMTP id c13mr49094745ejx.518.1594302996767; Thu, 09 Jul 2020 06:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594302996; cv=none; d=google.com; s=arc-20160816; b=SLOZlY+4qKIY7bqL8wi06PFdvurWYpc2DmY1uOsHRBbaHLZKPPqBBCO9oHBtORbVjF cPeDgcjy41y0KrjXzHTld+RliEn0fxZrNkBEWfRUDwPvPIw1qe3iUjnf264eyUUpOpbJ warzP6BXu0qKpYh9nb5Yh8hfI2PUj46wys52AlguIIlunc7IeycuiO5qN6o8XvcVhPI1 W8OJ8aSi0TAxyQneBJBTiC10eOxPRt7Uc6lbiAYSty4p/zucuuw9YIhzQLJIiZ2YkDiH WmX6JjcUy5zZtXhx6l/2xi+92p7j+Gro2nUWcxRM9FzRojiiyqB+EpgMqKx9t3CjOtyu YNmg== 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=A/4siLHon92g4IOHLdSOiY5MlPCIQuEMtRpmzy/+J/I=; b=k/k3tc4nFTPK+WWS7aixvoZZJnOl7w2lu2NHKS5nXvaGL8skT6RRFyOOnTwrvsg4WL ZL7kvbPi5GPk4t9tBDELcUOa4YWqo5ZgBnVmyONK6fPHUC7PHsGnRVaqmdJK1aiexoBN 6upZs6z34tx46kPlsI0UNuxGrmdgajD1jbjyuTKQqUKPUuh4Bq3BLQg/yMTAupmLB5dS c3jifu2kM5mhuHWc0pdrPwTCvsIlDpsPIs8U1J2KyPkL0mj0QhQn6tpmAziBJtD9wWMn jrd8lLpYsk7Va/nJdc3JDplvaxTdRAXRdIllFLfaSrFpiEyG9z5eBluijWcoZaQE0tP9 eItA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=AMhB8lMO; 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 f1si1863015eje.610.2020.07.09.06.56.14; Thu, 09 Jul 2020 06:56:36 -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=AMhB8lMO; 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 S1728037AbgGINxP (ORCPT + 99 others); Thu, 9 Jul 2020 09:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727850AbgGINxO (ORCPT ); Thu, 9 Jul 2020 09:53:14 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30B84C08C5CE; Thu, 9 Jul 2020 06:53:14 -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=A/4siLHon92g4IOHLdSOiY5MlPCIQuEMtRpmzy/+J/I=; b=AMhB8lMO9DpZKRSAYhyqyttzvO a/0wM1b8Ov//ozcY3BygrjpbYmqBPNdgi3ZiYAWwL3guA7HmKceFaKhd2qDFCfJ4O1AEcy1yIYhjR oshVp6hIfda+9XXUqf4KXVYTQ2p8TKorY7cEVCFwoSj1TSNEXUaqU5yCJH+ZuyBOiTfJuKT71Ag55 w75JXXYfdkFAwbEuhwq6BFXRjK+RRW+Vbo90lHx7tW9v0tXuynUjPF/67NcvjBugprhv5RvvMIvvo 4ry1lJxFdxY+PC84qOZbLEjWowNY6R2YMZiZUh+Vpjew1tmA1HEez2zSa7nTPp0JTMYaShf4rHOQi u2GZzv2g==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtWz9-0001fO-J6; Thu, 09 Jul 2020 13:53:11 +0000 Date: Thu, 9 Jul 2020 14:53:11 +0100 From: Matthew Wilcox To: Pavel Begunkov 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: <20200709135311.GE12769@casper.infradead.org> References: <20200708222637.23046-1-willy@infradead.org> <20200709101705.GA2095@infradead.org> <20200709111036.GA12769@casper.infradead.org> <20200709132611.GA1382@infradead.org> <20200709134319.GD12769@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 04:49:51PM +0300, Pavel Begunkov wrote: > On 09/07/2020 16:43, Matthew Wilcox wrote: > > On Thu, Jul 09, 2020 at 04:37:59PM +0300, Pavel Begunkov wrote: > >> Kanchan, could you take a look if you can hide it in req->cflags? > > > > No, that's not what cflags are for. And besides, there's only 32 bits > > there. > > It's there to temporarily store cqe->cflags, if a request can't completed > right away. And req->{result,user_data,cflags} are basically an CQE inside > io_kiocb. > > So, it is there exactly for that reason, and whatever way it's going to be > encoded in an CQE, io_kiocb can fit it. That was my point. But it's not going to be encoded in the CQE. Perhaps you should go back to the older thread and read the arguments there.