Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1955515pxb; Mon, 13 Sep 2021 08:54:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0A3ErxakIal5C+iAWEHt/dEq06wpQEL0Ts1BghovBIa7vIWalpipkfs/obgWzpuLUchpu X-Received: by 2002:a05:6638:37a5:: with SMTP id w37mr10477922jal.74.1631548468852; Mon, 13 Sep 2021 08:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631548468; cv=none; d=google.com; s=arc-20160816; b=A8XbojTePE50RyhYahZTC9RjIOaH9JCUkMiEHlAt08BVqvyysXOYXroyapnxdygGVF PLkNRw9AQmbXtcMSyj321rBDMDSolSG1QXxNWpq7pZ2prErEkH0DRGl7YqICKNeh3ZNY q2N56YWrJmclL53S8f8ScVE1i5Ch0P7Bp/I7TriAjKMSs5cI7Brt2RaxXniznYteOsXw sb1azQczigrE16ypkEZJ2zg5lV2Wkj1ukGHThk1lOsmRjUkeOM29xJ3t3eNfaLYDwTOK EqKvAGBf0DPdIl2Cjpm1mPGtFm1HqD48CKrCTkDwIfmJjUkuAtS8aDwka7PN/+EGNehW pXMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=k3ULkNN3/XfJylBmZ/HItDZv9Uxt7R1OIeLedwQKthY=; b=vAJZ+n5wDeB9TkiQW4sOgU77q6FdHRgD+/1MIf94EOmADFNllmURRD60OrdAs9KpCD aUck0hIudJTdF8WR5eGlvISvqlg4oyotha1Os0d20TAsKY16ZOXNl/avB5o7JjlgCdJ7 NuFXQj5TrP3lfsQ1PiE68/mz29MDgbIV90JeKh+rpVOYbfMu+vmwfL/W7NnZ3tdTJqGN HfcHmatGru64grqgNvAufid9AFoEkLIclYYYL7bxk0lYPkzkranEeFwGOL9jKBC0cKgW s9t4fyocfYKI4DuWyODBcx2OqtcMNgtXyJUkcCfJBCHMrwHpMYhqwygHOwAV8RctHTKs yXFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FZfQ1oyD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si7352394ilc.144.2021.09.13.08.54.16; Mon, 13 Sep 2021 08:54:28 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FZfQ1oyD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242288AbhIMPyR (ORCPT + 99 others); Mon, 13 Sep 2021 11:54:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39104 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242379AbhIMPyH (ORCPT ); Mon, 13 Sep 2021 11:54:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631548371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=k3ULkNN3/XfJylBmZ/HItDZv9Uxt7R1OIeLedwQKthY=; b=FZfQ1oyD/b3hC6+lwxGn39v+0rIeulei50qYdJlz4s5269IwLvxqIDB3sQ7iY/EQKGSr68 V1RSEPBIx0E625v6uDqmOsv2tUX9YWd2e48gFARzKLfhAl1ymeDYr3rca3FpOGeprvngux m1JUEl3FRC9NHpvtjCexr7z79P+ERxk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-171-gMqss-F0MWCA1O6CT3YIWg-1; Mon, 13 Sep 2021 11:52:49 -0400 X-MC-Unique: gMqss-F0MWCA1O6CT3YIWg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1BE0C1006AA0; Mon, 13 Sep 2021 15:52:48 +0000 (UTC) Received: from asgard.redhat.com (unknown [10.36.110.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 45D8A5C1D1; Mon, 13 Sep 2021 15:52:45 +0000 (UTC) Date: Mon, 13 Sep 2021 17:52:43 +0200 From: Eugene Syromiatnikov To: Jens Axboe Cc: Pavel Begunkov , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, "Dmitry V. Levin" , linux-api@vger.kernel.org Subject: Re: [PATCH v2] io-wq: expose IO_WQ_ACCT_* enumeration items to UAPI Message-ID: <20210913155243.GA23359@asgard.redhat.com> References: <20210913104101.GA29616@asgard.redhat.com> <872209f5-d11c-1b80-6146-5646206e22cb@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <872209f5-d11c-1b80-6146-5646206e22cb@kernel.dk> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 07:28:11AM -0600, Jens Axboe wrote: > This is really the same thing as before, just the names have changed. > What I suggested was keeping the enum in io_uring, then just adding > > enum { > IO_WQ_BOUND, > IO_WQ_UNBOUND, > }; > > to uapi header. The ACCT stuff is io-wq specific too, that kind of naming > shouldn't be propagated to userspace. My apologies, I've overlooked the fact that the proposed names are different. Updated and resent[1]. [1] https://lore.kernel.org/lkml/20210913154415.GA12890@asgard.redhat.com/ > A BUILD_BUG_ON() could be added for them being different, but honestly > I don't think that's worth it.