Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp532018rdb; Wed, 17 Jan 2024 09:12:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IEa38rQspIDd5cDqa8baCZExpmFb/n+o8KoZvV/bOoKlDOdefmW/9jCJXj6S1GroISNf2St X-Received: by 2002:a05:6512:48d4:b0:50e:6bd9:4ca1 with SMTP id er20-20020a05651248d400b0050e6bd94ca1mr2839256lfb.77.1705511545305; Wed, 17 Jan 2024 09:12:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705511545; cv=pass; d=google.com; s=arc-20160816; b=mrmO7bLP1YfalwAtmZM6s7kCGBZR3RJGSFh6wSjtitNX3tejXchmCOCSuwxhV2JJ90 hra2KjETngBRX2Ni/sAQprl2bSzM6L5b0dGROmmOtagopqA9Zkjefsd6h2zcqBNSq64K fW9cxMQBdmY30yTa6FUQVi8t/kEbvfo07AH5t0o6IQZu4FfQ5KP9R/S7TgNNJ8ujykpa Cw/S71KjHEoVJvRZClSaTjhDb3e6wkUnj0cgU1vYqURmr1wFzSCiqJEWY53yPwoG7h7x 9Habd3KU3mYfdBooHBvKNu0yDvY4AvB9oR+fghXK5+cxJNnQDzpc+uDmS6OecTES67ds 06hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=4bWrXBozZxWT+Le+JKj0QjMD23koe1KxVtSt7dBjPW4=; fh=7q2Pms2rUdoF9t+ncWv6VqychpXXKiXJyn4xbMKRSuA=; b=UuPpDk57B0Rs3tkbwwGYAsWPqeKSX2xP1m0IA37sU6DyqW64dG0uW+Q/1Mvz/cDWlK N3OBfK8mgdRKfczFA8XQ1ZxrtMgoBM41fsGodRaufsaA7Cl7UXOa2DBNsJ9WiQZmetHC ufCEkoVGQ2xDoGVjHLaji42Tsu82Az2BESeUIfu7euAslrCZ+Efo+mWob96LMy5UiNP5 j2NgfLYkemujnAdVTGkdOBV8p3prN7UzEDcibSLW8DNDXLcC9p3ImsrGElYK8ncvSqNi SLxJHcBk1PFu7EQ6Z24ebp92jukbGIAHbSy38TpZs2mEMDHp3ZOFvUNqWdV4r4PDj47F twqA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NbACLZtX; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-29261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o3-20020a1709062e8300b00a2c7176212bsi5461371eji.492.2024.01.17.09.12.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 09:12:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NbACLZtX; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-29261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0AC871F2301B for ; Wed, 17 Jan 2024 17:12:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17B6B225D1; Wed, 17 Jan 2024 17:12:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NbACLZtX" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C9C8225A1 for ; Wed, 17 Jan 2024 17:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705511537; cv=none; b=dyE/6RTPXumTGFI8brWgtTGLOxa12LZP72skv6wNHJ/7grUJuJ1uD7YmoXHMIIL+jOytsSeHa9WauVI9DQh8nI4Azg4vbCIAUx2g+npSUpb2DUOQk14qQOgbdHa82qQycWr+YBE6PeFYO8AGXVWDhLyj1WZqmsbtKZzi5/sev38= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705511537; c=relaxed/simple; bh=jmlCqKtLGMs4Kwsd9u38y4zOPmq6VA6dw+7SLfxbteU=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received:Sender: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rf3Af/R5DGtmiqUCiwCB8cNLk4u0FJlGE55Rp/winETTGVZ/gGQeMq/q/zz1D+T2gyQux4DlRhX5FKxQ5lUIYEmc8ZzfRqiHjgN2Zgd5VqrjxdxzMnSlieM8UtC9twFmBot4wkaozKKlO+7WymBnNfdZiuoAdGjvXHZGc1VwgD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NbACLZtX; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6d9cb95ddd1so4906244b3a.1 for ; Wed, 17 Jan 2024 09:12:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705511535; x=1706116335; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=4bWrXBozZxWT+Le+JKj0QjMD23koe1KxVtSt7dBjPW4=; b=NbACLZtXAB5O5t1OLzVliUAT7bJc64/shxZjaPugQwWcE+Bf/lfDAXHouLaguUIVIG uv4i8Jad4313oAuSTll8W2sn3VdlHhBf5kLygBejJC7N/IWazcDZ0fHWD9tvT6R+FBsN Uvd+dcQfxiSgjuOXpv3CwrdheaEPg0qjfDMDAYcbopo8Hnghl7adF0FXrogl1oOLhz7s T50T7rFqymsc0dyIZIc8nbsa0zEQnGTl63M+eUWXVZjR+x2koAOXup32HfTFdC+g9LXT I1rswToLoJRA1hNuuwSOmJxQulNzTQx2j0+4jzaIbbRELVaNoiPoY29wiKC9ln+hwsJY OGdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705511535; x=1706116335; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4bWrXBozZxWT+Le+JKj0QjMD23koe1KxVtSt7dBjPW4=; b=hvUBXHxXc6XO0U6y4ggJIL7AWqNZrKLqQvj7AyZumk6yGzz3RrOGijGBv9EnO61j8s U63KA3MKhu6l3oCUEYtJA41ZU3Krl3Z/AuoiINVWhks0IQHCoElLGQyksWKNdcjjXgpo aGWExIaikAXi1EliC6XoHFVfuoU3eU3z+KZtjnqHCf3SjCusXgKFNs6zPGykkjlKWWJ8 XBj0sXAQrghUvMENZiPc2xLuWVRlaXWbDkXE+d9HTkvezyQeJA9/3nmsekMFuJqSBn2p G0Nsy2mp2OqrNPIyTigZGpGKR63etDg3NPF9sblxx2UAo8ZRMKI9Nx4Zgbuo8H+XAK6O MBPQ== X-Gm-Message-State: AOJu0Yw4mhZgPRP9pPqEHhZVHWUQip9TnBfAXWSdbNXgew1CawJboD8i adIdzz8gpH7fmZqhDyZ0uuc= X-Received: by 2002:a05:6a00:3a0e:b0:6d9:e5ae:2056 with SMTP id fj14-20020a056a003a0e00b006d9e5ae2056mr8107415pfb.60.1705511535288; Wed, 17 Jan 2024 09:12:15 -0800 (PST) Received: from localhost (dhcp-72-235-13-140.hawaiiantel.net. [72.235.13.140]) by smtp.gmail.com with ESMTPSA id l18-20020a62be12000000b006db3149eacasm1671836pff.104.2024.01.17.09.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 09:12:15 -0800 (PST) Sender: Tejun Heo Date: Wed, 17 Jan 2024 07:12:13 -1000 From: Tejun Heo To: Juri Lelli Cc: Lai Jiangshan , Aaron Tomlin , Valentin Schneider , Waiman Long , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 3/4] kernel/workqueue: Distinguish between general unbound and WQ_SYSFS cpumask changes Message-ID: References: <20240116161929.232885-1-juri.lelli@redhat.com> <20240116161929.232885-4-juri.lelli@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hello, On Wed, Jan 17, 2024 at 02:06:08PM +0100, Juri Lelli wrote: > > This looks rather hacky. Can you elaborate how the current code misbehaves > > with an example? > > I was trying to address the fact that ordered unbound workqueues didn't > seem to reflect unbound_cpumask changes, e.g. > > wq_unbound_cpumask=00000003 > > edac-poller ordered,E 0xffffffff 000000ff kworker/R-edac- 351 0xffffffff 000000ff > > vs. > > edac-poller ordered,E 00000003 kworker/R-edac- 349 00000003 > > with the patch applied. But honestly, I'm now also not convinced what > I'm proposing is correct, so I'll need to think more about it. > > Can you please confirm though that ordered unbound workqueues are not > "special" for some reason and we would like them to follow > unbound_cpumask changes as normal ubound workqueues? They aren't special and should follow the normal unbound workqueue cpumask. Thanks. -- tejun