Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11232528rwd; Thu, 22 Jun 2023 10:21:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ743gGlB/Td+vk0vfMItemal4tYW2B8j4mpbPz2MOBoVqfQLsEJTF2lJA7e6t0g13gzpwjV X-Received: by 2002:a05:6a20:a219:b0:125:2e2f:23c with SMTP id u25-20020a056a20a21900b001252e2f023cmr1442150pzk.16.1687454469229; Thu, 22 Jun 2023 10:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687454469; cv=none; d=google.com; s=arc-20160816; b=mHtUmrtcZMhJuShM5I9PZa1oBvwwm5+ZU7cxUXAgxVczH2dRvLP3zuTyhc/8Z9AT+2 wJhfUAIzGocihxLAUhFgxfmqk8aeQfKQ0q12nzI+zqPAfJd4tR3yZlTLNHiiEFrj0Cfr PHkyvtKWb3yGl9xozqvTHITk0abR27/BA8B1PeuXLMmRLGOTiqTvCslcEn7coEMMDJK3 0wPi9yQfgHInkSRwYznYjfy4N0iJq+pSrFeil2+bLtOdHGBNZiU+wHUWBzlI5hj0cpKk ZdbbMxArTRmGtSKdBL/HlW/wMrC3zBFIuktG3OrVwWNww/GTfdNKb82RLoCBgh8Zpkab eFJA== 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=EPA0tfGkiVeMDfnurR1cQ1LxrJYi5ustlDZHV3/p/FE=; b=IKcugi9RRtaWoonXWLFKCeY5rmnQ0C+vdZP0wYymJaZFJZ+Zk4Zg8yjSzyP+okM2Q0 nOLa0HdS8I1f4ST1rrPfziLeTvdzuVibp+HrgL0tWklS6xCHWyQQe+i1/QE1Y+wXFWoX dJPDhSTC32xH4DYVbOXIrTu66nMjSELMn1iPzvLXPyGrxpoMCDFMd5SFHB1XPff47m9p mjgsj0d4kIy3jcZ3O+auLSHVoz9Vrh9Frv5foBH8KBtEtt1Hvo2nCzlejqgqNVb32yQf yzBEdzYe7fh9rfD/CbQojDcv5iRpjDIpAKTbYeU1NjqUvxFwwlt0vuUya/UdJICC6zJi ucGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cqgTLamm; 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 n7-20020a6543c7000000b0055721c3946fsi5314066pgp.792.2023.06.22.10.20.55; Thu, 22 Jun 2023 10:21:09 -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=cqgTLamm; 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 S230060AbjFVRDK (ORCPT + 99 others); Thu, 22 Jun 2023 13:03:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjFVRDJ (ORCPT ); Thu, 22 Jun 2023 13:03:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45094171C; Thu, 22 Jun 2023 10:03:08 -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 D5DF36189D; Thu, 22 Jun 2023 17:03:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFC32C433C0; Thu, 22 Jun 2023 17:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687453387; bh=bTPWSed6ATavN9U5OfmHvXOmtlfLENbeNFQ2nEWL28k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cqgTLammDQGkc9nRI3L+FPR4xD/n/+LA+BC7NUMTKssxHlmUTQkbZn3zzlij2wg8K q8rKPbqVl34LFlKDbmsSubW9/ucihWzklC8Sq6rRs2p0Jx8TZMcYD65vEma9W0I3ip t9h1OX2xT/Ngwu+fvgTjdThlK0T3lqetXfJ71rr8= Date: Thu, 22 Jun 2023 19:03:04 +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: <2023062228-cloak-wish-ec12@gregkh> References: <20230621232129.3776944-1-leitao@debian.org> <2023062231-tasting-stranger-8882@gregkh> <2023062208-animosity-squabble-c1ba@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 09:38:15AM -0700, Breno Leitao wrote: > On Thu, Jun 22, 2023 at 06:10:00PM +0200, Greg Kroah-Hartman wrote: > > 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: > > > > > --- 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? > > Correct. For now we are just using 0xa0 and 0xa1, and eventually we > might need more ioctls numbers. > > I got these numbers finding a unused block and having some room for > expansion, as suggested by Documentation/userspace-api/ioctl/ioctl-number.rst, > that says: > > If you are writing a driver for a new device and need a letter, pick an > unused block with enough room for expansion: 32 to 256 ioctl commands. So is this the first io_uring ioctl? If so, why is this an ioctl and not just a "normal" io_uring call? thanks, greg k-h