Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1325151pxb; Sun, 12 Sep 2021 15:28:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYkE0i7k2RmH5d9dePUvMj8jAlt+txxBR6XhRBH/HjIwlKNFSMUn0ISco943D7b4uRbu4Z X-Received: by 2002:a05:6402:19a:: with SMTP id r26mr10005763edv.230.1631485700492; Sun, 12 Sep 2021 15:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631485700; cv=none; d=google.com; s=arc-20160816; b=Y1jn21DcwGQPWyL9HOrJ/eE3u1iniLgwCqJZlQ8p4gN+k5RD+iATALKF0czjhx5nwN s4E0yfoLR5t3Bh1TcjXeY+LJoBkQvwLGmRWIyFB5LrdsYmtU1X1bkVwDyaHNf1ga8BFn dLqDuR3DqYhHfVNyMlVxHujMWORrD1zwCe9owf2y9YyZ2sPvRUo27nHEDU7aaZxcLAvR n+G4A7WQ9JdKR32PNNLT8MkEX1srPEgkljyj+rxGNMdTlW0+AmjvYIpk8vXXm7oqAbH5 nKmcPGOQD/bshfjKb9T8t4V8Y+eAhIRKjmX4V1LDsWg/wEVwQE5H3HqaMSIg0bo4QxTG 7M4w== 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; bh=nXYwhgTiawh21uUzouF8/5tRBMf2il2nmcAeispSrhw=; b=dEuzbwOWMkI1BAj7LCjZyrBTGub4MZITtb0wJifiE/6bvS5iDJVP0U2B6431VXu203 jOSqoOpGS+9pvARwQ6rdggO3bcS3KrM/Ifj6ceanCKOXRGqM1Gx5GdsVZErcdIeF8Ww8 RR5wCyWz9g2/aKS7aHH5yH0vVS4PNta8zG6OkBmAKPLtoQbbUF0PY8ty+sPYmT7NITWp ZrDIci4K2aBQhQikLup9DhI54oikz3yeCLJz65Z5Hg77M5+dCpISyP2V+7U3ULQBnbZX 7B+3t2kPlGxBwmVY/R55JEkAbcnEBB6iyTQfNQxa3Sl63LIHK+e1EB3T9SoCkqpjQrzl wYNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si5242047edl.424.2021.09.12.15.27.56; Sun, 12 Sep 2021 15:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236631AbhILWZw (ORCPT + 99 others); Sun, 12 Sep 2021 18:25:52 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:48690 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235898AbhILWZv (ORCPT ); Sun, 12 Sep 2021 18:25:51 -0400 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id E567972C8B1; Mon, 13 Sep 2021 01:24:34 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id D64787CF786; Mon, 13 Sep 2021 01:24:34 +0300 (MSK) Date: Mon, 13 Sep 2021 01:24:34 +0300 From: "Dmitry V. Levin" To: Jens Axboe Cc: Eugene Syromiatnikov , Pavel Begunkov , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH] io-wq: expose IO_WQ_ACCT_* enumeration items to UAPI Message-ID: <20210912222434.GD18053@altlinux.org> References: <20210912122411.GA27679@asgard.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 12, 2021 at 12:29:41PM -0600, Jens Axboe wrote: > On 9/12/21 6:24 AM, Eugene Syromiatnikov wrote: > > These are used to index aargument of IORING_REGISTER_IOWQ_MAX_WORKERS > > io_uring_register command, so they are to be exposed in UAPI. > > Not sure that's necessary, as it's really just a boolean values - is > the worker type bounded or not. That said, not against making it > available for userspace, but definitely not IO_WQ_ACCT_NR. It > should probably just go in liburing, I guess. If IO_WQ_ACCT_* were just boolean values, no enum would have been introduced in the first place. What's the benefit of hiding the API in the implementation, or burying it inside liburing? -- ldv