From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f74.google.com (mail-wr1-f74.google.com [209.85.221.74]) (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 8539D3AE707 for ; Tue, 3 Feb 2026 15:39:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770133185; cv=none; b=QsblZtdYpk1CpLvwZHPAoDpYwDAFkdmd1Oid90ZfUZYCLQ4cWN5awbIu2jTWAi+4A3ENuBRREG4BHesowKcTGOzeyH7dTADr6U3GJS9GaNDSvVuts9YbALPs8PBnZ2tstKIGQnouAXU9n1CsVJ1J1Hf2mXvgD+A1qS+34mOsrGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770133185; c=relaxed/simple; bh=NoV3epT3XMLJJxjJcfyJFQFSDqsH9iHzfEaWXUXg7aM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=MoxvTeOl2yMiYlpHrsmv/x+F0wArunp6lmlS4x4nbvPCMKUmFI26BoXFIFKGUwUwprAKoJttd6SErbwpRnzHgMCn1sueeSFWliFPoNilvmKcsrHGrCc6oDzw7Tor0livKUsSsy3TB64/dfo9q3+9DIXSv4k/p3QrPvfvew8ouLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=pdLFyXNr; arc=none smtp.client-ip=209.85.221.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pdLFyXNr" Received: by mail-wr1-f74.google.com with SMTP id ffacd0b85a97d-4325aa61c6bso4683149f8f.0 for ; Tue, 03 Feb 2026 07:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770133182; x=1770737982; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=jwuwoTFk+PtEY4O1IQ4NpWykbWJHwffpC+PC91GHYEg=; b=pdLFyXNrXqLp2QmJ8torCkGwW+df1oSwajTc9gdGwTDoW1UpUdo6s/cUUI5aNUe6dL Tl8VrxuOhV+yWqiVoLm6m3iLmD6gxuSgs+PoXiluiSwKMPpAUJZ9H/XY1AOHCKZGRSlJ c5Hdpf14DBHhymkpwUWK8FL6neTZ+e73z8M2u3SdhCd1BHTWR1aoU4JncnAAb415dfOE vNRE2iDU2ia6FVdOKZ3R6LfGB3VMdqINi0gEoYvjj8p9JmQQYZBginiHOffOcXeP/O0v T/WDRzyqC/ylTkWt4DbJbEHbwbx5nwFsxN+5Z748wEdIab9vbTTLRm6QQDQVzHzUsvfN JEzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770133182; x=1770737982; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jwuwoTFk+PtEY4O1IQ4NpWykbWJHwffpC+PC91GHYEg=; b=Y61iOzjQoWXJEWWeQgmvlDvXy3Xy/aktMPiFTQLsJ+p20yPVDpREWSB/UweItBcyDL EptCB5gzUAde8xoQV4wYppCiydkhS2pQPvK/g5mDs9j4IWF9tEywdUKaMpHrTF8geAEh Tmw77UqgTccuPC3+x1dvEOwWylnaqcJk0sjr+4qnyuqvVw1mUgMJ2djTHOe4K7BQtbEn OKBAvJjalg4FwqXz8N200bapAi4qIrIHCwi+eIKHf6ehwsnGRwKI8BTkH8uDa08NTVa5 ZXNIMYwn+67jHFt/+tgGigZrKMBcpGcmSRsV6+ucth5qq5S1LjqUo8SGSd4kqH6jBn/o 8oIA== X-Gm-Message-State: AOJu0YyLieLvqfEFciHRKZmn1pkp0YoOcqghMxJCLIRvjbkbQMFt+e0b zZWnteY3OFnLBdTll6k199gIIQW2+1Jjz+7VV2yeoPXOJ6HQNA5nSVE1W6esu8Fxc8TRoGaDkBk WwqqOB2TloZ8GaBDr5Q== X-Received: from wmri26-n2.prod.google.com ([2002:a05:600c:8a1a:20b0:480:4a03:7b7e]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:46d2:b0:483:885:f0b0 with SMTP id 5b1f17b1804b1-4830e99d428mr368175e9.35.1770133182095; Tue, 03 Feb 2026 07:39:42 -0800 (PST) Date: Tue, 3 Feb 2026 15:39:41 +0000 In-Reply-To: <20260203152818.317806-3-marco.crivellari@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260203152818.317806-1-marco.crivellari@suse.com> <20260203152818.317806-3-marco.crivellari@suse.com> Message-ID: Subject: Re: [PATCH v4 2/2] rust: add system_percpu() and per-cpu enqueue functions From: Alice Ryhl To: Marco Crivellari Cc: linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Michal Hocko , Miguel Ojeda , Alex Gaynor Content-Type: text/plain; charset="utf-8" On Tue, Feb 03, 2026 at 04:28:17PM +0100, Marco Crivellari wrote: > The C code defines 2 new workqueues: system_percpu_wq and system_dfl_wq, > respectively the futures replacement for system_wq and system_unbound_wq. > > This change introduce system_percpu(), that use the new system_percpu_wq. > > In order to enqueue on a specific CPU, two new functions have been added > to the Queue implementation: > > enqueue_cpu() - that receive a u32 CPU id as 2nd argument > enqueue_delayed_cpu() - that receive a u32 CPU id as 3rd argument > > system_wq (and so workqueue::system()) will be removed in a future > release cycle and should not be used. > > Suggested-by: Tejun Heo > Signed-off-by: Marco Crivellari Reviewed-by: Alice Ryhl