From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cloud48395.mywhc.ca (cloud48395.mywhc.ca [173.209.37.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F193A14901E for ; Fri, 2 Feb 2024 16:41:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.209.37.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706892122; cv=none; b=SX0M1On4wIR+87+5pDkCixpTw69mNmjaKIGWpCbDnHEz9noUI/JPuZazid2Fj6S1Dsh6JEb7Y3w979ZFUxVD6+NdMrFX9tu+8ssXzEsf0jbQTZqUvZm4LqtPN9LrWFzw2CfDda5ZHsCwOryWLYoZ8JeeYDnvgbJd+UzBCN+BxcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706892122; c=relaxed/simple; bh=xFE8D95posObEqDGYUgMuXIb2kKk4D3lwmL0aKW740M=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=C0IBW1R/MGfF6e0I185/Z9T504djpan/rszgXzaUOQ+MA37HaEIZHldm12ghfispzkJlmSCbVZw9SW+ahp96VyHg6AgG9z23lXDcDOl79ixkkBCUDD/HDwQNDhuJnZIkVjd0HO1fPTlpFaa+GDaO19Juu/PVk0gxbfbvti5Grcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=olivierlanglois.net; spf=pass smtp.mailfrom=olivierlanglois.net; arc=none smtp.client-ip=173.209.37.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=olivierlanglois.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=olivierlanglois.net Received: from [45.44.224.220] (port=42274 helo=[192.168.1.177]) by cloud48395.mywhc.ca with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rVwbr-0004FC-24; Fri, 02 Feb 2024 11:41:47 -0500 Message-ID: Subject: Re: [PATCH v9 1/4] liburing: add api to set napi busy poll settings From: Olivier Langlois To: Stefan Roesch , io-uring@vger.kernel.org, kernel-team@fb.com Cc: axboe@kernel.dk, ammarfaizi2@gnuweeb.org Date: Fri, 02 Feb 2024 11:41:46 -0500 In-Reply-To: <20230425182054.2826621-2-shr@devkernel.io> References: <20230425182054.2826621-1-shr@devkernel.io> <20230425182054.2826621-2-shr@devkernel.io> Autocrypt: addr=olivier@olivierlanglois.net; prefer-encrypt=mutual; keydata=mQINBFIJwfYBEACqgHpFceS5hsSRa9wtj3GiO3m8fvYNoYc4m9eTqjF1DtQeFE4xgn9gKYhN4QoL3WxfTdHvnScANp9cbYVhLTYXOFzpeendCFEJcMr7rynPRsUS2ZXO/qxLFgue8UHi7a7hW3sx9Sg8QRyRKsQa5Bz8b3/UPljJ0c8Z7XTtkbvekB5hW9747b8zMipBjh92loQuipuACqYfL2+yZBwWLrMwlfkn/SASpUff/Tu8oH4mEioS7IfDnl/D2M4ZtCD5vrrXDwnSmHvMUMpaIB2SudZ0JQzln824ud2y5uJeCdVOoJXc3R4PvUnGecQduQJ6013vcL9F8eM4PVK1Hqj7DSig9mDjVF+wKZXsuxWU2KRpD1SSCWg/Zv9RT+PTJZ+e4cQaLOOdalxvk3iYxgektnN/xVuAFB1ndSzw6GhdckgqPOj0wf81CyO5gbEJzzP4/Y3x8I+MaP9cghSWTnv+nGYDvSE2ok6sCkkI4THO+uW5JUVQ5pJ36RHWhA1ABpP41wyfrnus4r+VAKycLfvB/2+1/natsPbEQnVkB20lU3ZMZognYvVEh0Bwm0Drl8oyEgMogWidOqdM17PWnvJR/DOV9H4JeCCMpTsTvZIZKJPlvbqsSLfKygpGsfucY4wphPSb5w7dQ5YNLes4Lc2YwIDkHV9xM4fnYmFUtFsoBAPeK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i8vJZFCuWzDnF2C57io5VVoVBXmvuTPuM07yLrqyJvNGOzWAw9nSUBFyfZf15Sl71F3eycjH1XSZWIs2/CIQjGYiIVx5BSkSafuLenkNNczUkFSbYuXt5+h04W2hxfJAj1pOxI4WyK41RATVQtQ7agDJ4w72vFsS+alMcAupQ2dO2+8Noy/aQzun8FwHJSUGd/RN9/DqrkBCus2jhnjVvboqlFj0owARAQABiQIfBBgBCAAJBQJWHdHlAhsMAAoJEJpW+1FlAp67ensP/AiwTQBH+/stWGygarKyHgMWBLesL5xiIAa1KNH1gZsmK2eDuKv34zaRKKMs2Fx3qPAAvwzY1+O4jdOcSWM8lXw8NjpxrnyoA6FCtx5IL0jzWzQgL+RSvAtK76Z3Iq7b8ppeD8j5AUe6eN/1XkkGu67E+1+8NNgbtniqB01Cabm6DfUALmdC25Ess0iC5Hp3B+Upz1kpMUDo5UICh1dKjvKBQO3Vi/5U5jSed/LjfKLds3ZiBJ2S1eVmscdOP9XpO7fZM/JssqIAvc63NZMJq1mtCnCQTBD/OMH+lqj9b3LEk281QyRmhGNVBuJ/L3ZXegLBR+3bg7zsW2cmoiT8pV8hgcATT3oKyQcvUd1gjjuY4rmn+O6HQcxthmpuN8L3oGElF1gr7FITS49jlwFolbWbDRUq6voVy9MSJBtYRSQrpRbNV87LYwVPtcrwgq2w6/aZfK3MZX0Afd6WrGOJr3ZTBCHNjioJq1pzhK0ElbEYGO2j1MIfv9Yv4D6EWOR9gri1+QHYoK2eQ2ZcHoRZetUygPcoiZVz1vuDQgprMkI6Dlj2UhxMhGScC8+iHZDzBk2PXvZmNbxqJbHfr8XXJrt9MUmfCKeBauLgiM88kD1ReH+/BsrWn5ouqIpy2apxVoqcYpb7ZjBSyqOxOXeRfQAiJzjLjKBOdVyiz6P+crTi Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud48395.mywhc.ca X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - olivierlanglois.net X-Get-Message-Sender-Via: cloud48395.mywhc.ca: authenticated_id: olivier@olivierlanglois.net X-Authenticated-Sender: cloud48395.mywhc.ca: olivier@olivierlanglois.net X-Source: X-Source-Args: X-Source-Dir: On Tue, 2023-04-25 at 11:20 -0700, Stefan Roesch wrote: > + > +int io_uring_register_napi(struct io_uring *ring, struct > io_uring_napi *napi) > +{ > + return __sys_io_uring_register(ring->ring_fd, > + IORING_REGISTER_NAPI, napi, 0); > +} > + > +int io_uring_unregister_napi(struct io_uring *ring, struct > io_uring_napi *napi) > +{ > + return __sys_io_uring_register(ring->ring_fd, > + IORING_UNREGISTER_NAPI, napi, 0); > +} my apologies if this is not the latest version of the patch but I think that it is... nr_args should be 1 to match what __io_uring_register() in the current corresponding kernel patch expects: https://git.kernel.dk/cgit/linux/commit/?h=3Dio_uring-napi&id=3D787d81d3132= aaf4eb4a4a5f24ff949e350e537d0