Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1395722imc; Mon, 11 Mar 2019 12:49:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDU4bjZOluhho3S9+aXyBEwAcRybZ9gNZlS6RLth6ygNjEnSpGT4QwYT0MOpQogGANFc24 X-Received: by 2002:a62:36c7:: with SMTP id d190mr34515079pfa.178.1552333782195; Mon, 11 Mar 2019 12:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552333782; cv=none; d=google.com; s=arc-20160816; b=aqCoN1Jj+0LZ0hCgIWsfTpTpZ71GO6F94s3TUmldVNMGXPJTpjOBXLMXSjRd+S2fGH rSPPppyQED8w4ngoHVUXr7OOb9CW3tg/bBtCmK9/uq9P4GDMspVR3B703Z123GT6LJJV cf83C3zpODY6T/qEdx/I5eYZRwmT/eebviMFcccWRL2lnoSWZDCeA9zm692nAgs6u7K4 AJvhevuQ2cME3bX25Hi701aZocf2H+gJ9VJaa8t0H5tAD9XnLihUtlj149W1AeIlR+3Y j2+p6wOpFE+28QuWdrsAcnwp3U+HpaLXEiepdz1qL8aOKNCpEzBkAOfN9xVfHdc0P5U8 RYMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=csuuT8rSY4FDf7BZNZMjQFGeLO9f8VBmyJy+SLuV+os=; b=F86SV+GYBJJk05Ubj7/zF296s/iawej2IWZkfKx5KGLKWNq449BUWc4mggGJj3XuKL /dlI7/0liuldHBFlFCbWFTDK3WDjc604Ol9Xoe/isLy1QZpqtC4VvAdY7LhqoyjPe75d GEmeIM3jHON1T2N1I93BWOuZNWYJoMuArfqW2pxDih9Tg9O4YK2zBPSIqy0Myf2Maunr VbtJUmkzE/lkfFDz8xt0kBFekf1nQcQ9dZNGaaMo6BvAlHnAQfBHxsQr3DrvwfPlUeNI s8wJHR1xerMikjxrc/3OQeYOYqskl1TlVYk1/SNJ48G7w3+VTcJAkDfeoLMzq1W8ceHw TCag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j4si6003872pll.286.2019.03.11.12.49.26; Mon, 11 Mar 2019 12:49:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728170AbfCKTsh (ORCPT + 99 others); Mon, 11 Mar 2019 15:48:37 -0400 Received: from verein.lst.de ([213.95.11.211]:43255 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727118AbfCKTsg (ORCPT ); Mon, 11 Mar 2019 15:48:36 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id D0E8C68CEC; Mon, 11 Mar 2019 20:48:30 +0100 (CET) Date: Mon, 11 Mar 2019 20:48:30 +0100 From: Christoph Hellwig To: Al Viro Cc: Linus Torvalds , Eric Dumazet , David Miller , Jason Baron , kgraul@linux.ibm.com, ktkhai@virtuozzo.com, kyeongdon.kim@lge.com, Linux List Kernel Mailing , Netdev , pabeni@redhat.com, syzkaller-bugs@googlegroups.com, xiyou.wangcong@gmail.com, Christoph Hellwig , zhengbin , bcrl@kvack.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, houtao1@huawei.com, yi.zhang@huawei.com Subject: Re: [PATCH 8/8] aio: move sanity checks and request allocation to io_submit_one() Message-ID: <20190311194830.GH12602@lst.de> References: <20190310070606.GA10138@ZenIV.linux.org.uk> <20190310070822.11564-1-viro@ZenIV.linux.org.uk> <20190310070822.11564-8-viro@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190310070822.11564-8-viro@ZenIV.linux.org.uk> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 10, 2019 at 07:08:22AM +0000, Al Viro wrote: > From: Al Viro > > makes for somewhat cleaner control flow in __io_submit_one() > > Signed-off-by: Al Viro I wonder if we should even bother keeping __io_submit_one. Splitting that out was prep work from Jens for something that eventually turned into io_uring.