From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B730C433DF for ; Fri, 22 May 2020 00:52:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 27E012078B for ; Fri, 22 May 2020 00:52:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726737AbgEVAwh (ORCPT ); Thu, 21 May 2020 20:52:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbgEVAwh (ORCPT ); Thu, 21 May 2020 20:52:37 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6822C061A0E; Thu, 21 May 2020 17:52:37 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jbvvO-00DEa8-2q; Fri, 22 May 2020 00:52:34 +0000 Date: Fri, 22 May 2020 01:52:34 +0100 From: Al Viro To: Bijan Mottahedeh Cc: axboe@kernel.dk, io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 2/2] io_uring: call statx directly Message-ID: <20200522005234.GL23230@ZenIV.linux.org.uk> References: <1590106777-5826-1-git-send-email-bijan.mottahedeh@oracle.com> <1590106777-5826-3-git-send-email-bijan.mottahedeh@oracle.com> <20200522005053.GK23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200522005053.GK23230@ZenIV.linux.org.uk> Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Fri, May 22, 2020 at 01:50:53AM +0100, Al Viro wrote: > On Thu, May 21, 2020 at 05:19:37PM -0700, Bijan Mottahedeh wrote: > > Calling statx directly both simplifies the interface and avoids potential > > incompatibilities between sync and async invokations. > > > > Signed-off-by: Bijan Mottahedeh > > --- > > fs/io_uring.c | 53 +++++++---------------------------------------------- > > 1 file changed, 7 insertions(+), 46 deletions(-) > > > > diff --git a/fs/io_uring.c b/fs/io_uring.c > > index 12284ea..0540961 100644 > > --- a/fs/io_uring.c > > +++ b/fs/io_uring.c > > @@ -427,7 +427,10 @@ struct io_open { > > union { > > unsigned mask; > > }; > > - struct filename *filename; > > + union { > > + struct filename *filename; > > + const char __user *fname; > > + }; > > NAK. io_uring is already has ridiculous amount of multiplexing, > but this kind of shit is right out. > > And frankly, the more I look at it, the more I want to rip > struct io_open out. This kind of trashcan structures has > caused tons of headache pretty much every time we had those. > Don't do it. s/io_open/io_kiocb/, sorry for typo.