Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11148157rwd; Thu, 22 Jun 2023 09:17:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4nM4nkJ/ty5qFxkhAgjiQJscFYYTegl5mITxD00w0XpXiMc1+xP46VpNr6j7uWY1vzian+ X-Received: by 2002:a17:903:41d1:b0:1b3:d5ec:673a with SMTP id u17-20020a17090341d100b001b3d5ec673amr15023023ple.33.1687450620063; Thu, 22 Jun 2023 09:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687450620; cv=none; d=google.com; s=arc-20160816; b=InMd5B5hk+eHHLfZ9vG6h7BftBmXK2kRWj/Oib/tE+sslVlEQwR2hUdHc0MMJEIcoJ 1cHv/3EohaawoPfVEEMU7CjnLbied/vTr47G2+APfdIIbl2+oCoN990hOykCvCkG+oN9 GUWs/yR3AM69pcxLEudduxA/SFNukWzA90mM00418gnvouWHfRHlPvtPDjnla5umzOTH WjDnhl9LCmncBXwIdnKl0RKxHhsdNllEJcCgBGtbnYx7X2nBC+d8Ng5j4Mmp352MkqZ5 xmhTnv+I2dja/ZHJue27Whbci1Uu1Xflz+BSqDJRkoaGpAzguqvksfEdNAesCtWszLj4 8mIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wtjfQ/PJsf/Koswub4HCXp6FvyG5ZmasTN8L3lDo/xg=; b=T0ZTPDy1O6JWo0tWanLjSGgvIOCIOYaj9xI4XdAqsf16HC06BZmBao94gaYajykUI6 WpxPsVh4nJncK6Uvl/UkWmn4mOYcy/fXKVcGfcwrJCQqZ3zokTKmubaXWbWjHxN9VGP2 BSKzOS0b7CbMUdOHI+rfEEX0hJDKy8SunEINrAOalHso7+v0XnJh67GKUzOZaN2YKurH qBAGxiaU05p3yjMBhmsKIwAcf+uyHaNB1Y1cl1YU4ffruadykUDRaiLJxFJCYpmMJ40l YXmQFEGmRYUi2ICk26dCAjbGSxElgfeOyqCfyHIjyVLG02nOUE4BAvMoKzCvZwOaNuBd OCRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BnXgHjpi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i1-20020a170902c94100b001b3b93609c6si7279165pla.538.2023.06.22.09.16.27; Thu, 22 Jun 2023 09:17:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BnXgHjpi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230462AbjFVQKR (ORCPT + 99 others); Thu, 22 Jun 2023 12:10:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbjFVQKP (ORCPT ); Thu, 22 Jun 2023 12:10:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD4271FC2; Thu, 22 Jun 2023 09:10:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2103B618BB; Thu, 22 Jun 2023 16:10:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8138C433C8; Thu, 22 Jun 2023 16:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687450204; bh=xLyXvexgDPhNaQNSn+EFSDO6E/yJrPCxAprammFlvbQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BnXgHjpi2MOfptfmTAtE/YPjGIuBTYzlKRUp7fENW/t9oQhN2Xrrt73Twhx75Hn7C gr4CxvjVQBjaREfgJZ5Nef/HZ4D3NIdLzoJf0HgA8jE1lsD3372UNRGhhtBy5ZqDvv A7jW+W2Xlc2fbpFJvEfeBL4UEM8NxIgJSRpd7iGc= Date: Thu, 22 Jun 2023 18:10:00 +0200 From: Greg Kroah-Hartman To: Breno Leitao Cc: Jonathan Corbet , Jens Axboe , Pavel Begunkov , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , leit@meta.com, Arnd Bergmann , Steve French , Lu Baolu , Jiri Slaby , Stephen Hemminger , Jason Gunthorpe , Simon Ser , "open list:DOCUMENTATION" , open list , "open list:IO_URING" , "open list:NETWORKING [GENERAL]" Subject: Re: [PATCH] io_uring: Add io_uring command support for sockets Message-ID: <2023062208-animosity-squabble-c1ba@gregkh> References: <20230621232129.3776944-1-leitao@debian.org> <2023062231-tasting-stranger-8882@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 22, 2023 at 08:02:37AM -0700, Breno Leitao wrote: > On Thu, Jun 22, 2023 at 07:20:48AM +0200, Greg Kroah-Hartman wrote: > > On Wed, Jun 21, 2023 at 04:21:26PM -0700, Breno Leitao wrote: > > > Enable io_uring commands on network sockets. Create two new > > > SOCKET_URING_OP commands that will operate on sockets. Since these > > > commands are similar to ioctl, uses the _IO{R,W} helpers to embedded the > > > argument size and operation direction. Also allocates a unused ioctl > > > chunk for uring command usage. > > > > > > In order to call ioctl on sockets, use the file_operations->uring_cmd > > > callbacks, and map it to a uring socket function, which handles the > > > SOCKET_URING_OP accordingly, and calls socket ioctls. > > > > > > This patches was tested by creating a new test case in liburing. > > > Link: https://github.com/leitao/liburing/commit/3340908b742c6a26f662a0679c4ddf9df84ef431 > > > > > > Signed-off-by: Breno Leitao > > > --- > > > > Isn't this a new version of an older patch? > > Yes, this should have tagged as V2. > > [1] https://lore.kernel.org/lkml/20230406144330.1932798-1-leitao@debian.org/#r Great, also add what changed below the --- line please. > > > --- a/Documentation/userspace-api/ioctl/ioctl-number.rst > > > +++ b/Documentation/userspace-api/ioctl/ioctl-number.rst > > > @@ -361,6 +361,7 @@ Code Seq# Include File Comments > > > 0xCB 00-1F CBM serial IEC bus in development: > > > > > > 0xCC 00-0F drivers/misc/ibmvmc.h pseries VMC driver > > > +0xCC A0-BF uapi/linux/io_uring.h io_uring cmd subsystem > > > > This change is nice, but not totally related to this specific one, > > shouldn't it be separate? > > This is related to this patch, since I am using it below, in the > following part: > > +#define SOCKET_URING_OP_SIOCINQ _IOR(0xcc, 0xa0, int) > +#define SOCKET_URING_OP_SIOCOUTQ _IOR(0xcc, 0xa1, int) > > Should I have a different patch, even if they are related? Yes, as you are not using the 0xa2-0xbf range that you just carved out here, right? Where did those numbers come from? thanks, greg k-h