Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1453408imc; Mon, 11 Mar 2019 14:13:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiNt8zKUim7wSoLmwn2yFEkSreRjd3MBI2X6fvnY1pTQ6ovjLNxnDKYN9TWj9TSphz8hdu X-Received: by 2002:a62:64d1:: with SMTP id y200mr34944339pfb.161.1552338802505; Mon, 11 Mar 2019 14:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552338802; cv=none; d=google.com; s=arc-20160816; b=hQiEjxRJmrqJw36ZFionpEQih2pthzUI1n6V38MjrqrJKhKTAryx98BWLN0q8Ec7HV Fg3cVtnqn2GwwRKsUWYPfTaaDXC3+BZicZWgplrqJ624onUh00AIpV7wpb3TPRmgg7dD XI5kvXtGUUKaUGc1uEKXnzw/DIShVDKwkGDOGl48PtaOc8HmAduv1tjOZqDb6cgYwmhw obQknVCN+uiYOZ8f7YIasqknI8I4bwC3qE7N3lE8tBAEANu5Fakl0h7YALaJjJVVAqEA F7BdzRWquJdtNpzYuRKELYEck/hqFHLn3wrDCIhpRdb5zQDoUyFZqTu1PPoruIR09d7J SkSw== 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=bSZ7mqHl6D6/E1f/B1Sis5KH+XJRjATKgVGy6/v05uw=; b=mYQwbCn7ELkqwvk4fFJG7zwD8MaYXCdmIAo7L8N3SzaF2XIOOuCZxPdJK1iRA4z9Lf M4AZDEvLZYTp/EKFM5G11Ej9MEcSE4DrOMS2pBQTF6+6KBUbIhOvXHvCW14oqu3HgiIf 2vWSsFcrnSp9CwrF80//JmIx1prnOYSP9axfhTLqNoPMe6Vear9P5iL4p25gXJebTMTd YLmFog5rhlXYELFTx51vuBMMcJLBO+uBuIT8wOeXZznl8xNBn5ZmqcHsEY5A+EcpowwN LuLXOqkalNWKmnK792rwUl1PbWfgldGDRNn5uwOtHELZeW0RIUp+hGd5T1Bk60jPvXJR 6KCA== 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 o17si5984255pll.344.2019.03.11.14.13.06; Mon, 11 Mar 2019 14:13:22 -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 S1728325AbfCKVMp (ORCPT + 99 others); Mon, 11 Mar 2019 17:12:45 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:59990 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbfCKVMp (ORCPT ); Mon, 11 Mar 2019 17:12:45 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1h3SDr-0001sB-PQ; Mon, 11 Mar 2019 21:12:35 +0000 Date: Mon, 11 Mar 2019 21:12:35 +0000 From: Al Viro To: Christoph Hellwig 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, 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: <20190311211235.GM2217@ZenIV.linux.org.uk> References: <20190310070606.GA10138@ZenIV.linux.org.uk> <20190310070822.11564-1-viro@ZenIV.linux.org.uk> <20190310070822.11564-8-viro@ZenIV.linux.org.uk> <20190311194830.GH12602@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190311194830.GH12602@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 11, 2019 at 08:48:30PM +0100, Christoph Hellwig wrote: > 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. *shrug* I think it's a bit easier to keep track of control flow - failure exits are simpler that way.