From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 B8D1F426ECB for ; Tue, 5 May 2026 12:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984889; cv=none; b=e5liamyP3Y10bAEefbUHzXsrQDF9J77uZiEgVA4fIxjOLkKr35DYfJwiAYbxS/CueOI+EfJ5yLzIke0Qjd5yn+o+lQWPJAwZ+EjfyVIohwfDl12PGnoGjcGLyji7xfXXPCD091CvfKKZItpEKvUHVESjk0TqXGt3Fxyd1GEombQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984889; c=relaxed/simple; bh=OHZkHvqRymIQyrNUW7FAuiXP1B+hGUEyrb8dLcqMTSQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NAqgutz4qOXddkMZO5I69+hfhryxEgDNX1fudL7SDlbmRG0ZQmF2qOrGVMnH5HuAI3brRErl6Dvsp/BMr3jnPPZLrcsFDmNY6So5VEfBkOof0PKy/GK2m1hdTP7nuoPE8vJ8ii6zFOgLbb5q8YK0X3F97OpWVNQrN6nOMnfJrok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=CusSnT44; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="CusSnT44" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4890d945eb4so35048715e9.0 for ; Tue, 05 May 2026 05:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777984886; x=1778589686; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+SbX0goFvkLXOPqreybwYaDLdubep7uJYGR6lz7aADw=; b=CusSnT44VMuukjuj8BeJlxE+XwsoTlmBGSlNiPPqfI/TLL0meYqBSz6CRpweDJYnAK 8890hfRCLZ6RSwntEqAI/yu9Dk8UE6+wduEXXg0t06CVqgZUPW0oo2CVrYWUFupmvQDT hxMVUv8WS6VhxfGVBuj47YSs487YC1a19bWIwdNg4Tyr1oJb3v0pl19tic5om48OKgNY XzPdfTqmL9mb2Q75f8wlb9Ge6bhh2LnGdR9+Q3xt0BgMzat2iufHWhwQEk6cCH+0fAOB 7+Jy384qOwBi1YXHd0unvak1cDy7P3w/eU8WnyKXq6lo+k8E1DUaABMUx9fPA9vekfYF qohg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984886; x=1778589686; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=+SbX0goFvkLXOPqreybwYaDLdubep7uJYGR6lz7aADw=; b=p5h9ohzBBAnKrRSGMNmzqxvtciwIY2AcS6GQQQfBEhxJpWanjie/fqe4DdxG2phxD1 uelwVkNB8jKSdUjkYXlm5PsBNDxkfKtGnry1WRdyJuqMelmkYtpU8rATJ5zSjORkcQ9Q Lak+izrhAbKEvUpDAjG+6Z0UAgOfr1jq6B6MYf8v7uREPgM1MA6pmW8iUMTWEF4trDoN c3P/axAmY74187/DRUQ7V57wrkjlZJnoGipLm0Ihx4h45yznY3m9gxOaL2yDxJDEFqH7 p9NKgYrDcYO/ap2XqTFAmOcrL2dHngPr/K19BFC/kER1aCNawprkPBRdZlLHSPytN7pj 9rFA== X-Gm-Message-State: AOJu0YyGaDX3V5op+uKiH5tBjIA3zHBeVnWN7ZNw7rIQCVgEqbS3ePq7 t7HWmLtnyQdt/OgR8bAEh9ev4Mlea5HC7z634XiDMzj8PjLLcjxRNU8MgANCQonYZAVNsKq9/eC d8zopbSc= X-Gm-Gg: AeBDiesBrBda/vneDWj/wPMAWAK5b6e/+21ZbriQj25lLwNMs9XbHzABcKueOCm5SJs /wnG89mFrFn+a4oSPV7Phm8KIJwERRDdwXHV/ecfWQO5PTaGfPfmgiMr1eePgymNOB3SJy6hlRL nDvweCnuaO7EDxY1UfPdG6UIS+MtuQtfQr+ZEkTunuMomeHnlu7Enu2s8RI1x55GSbPwIXIpVrT 4t1AlYdJfqDJrbXWEOzfsH94L4RHwCdfC544BvrHlfEOqBHY//UKSA7u2tWLvEQCOycLgi7Tzzr P2cl/Rg23n+JRuF2IBiU4aEiZUJbLHANWeRbeuGdfH0eGxfTmoSjE1vzP22vjcZCcAPO8wkjZOi A44UbXToAPn5u9GXdJMNoT46eKobPZ60UzdiWBiQvP8RB1mG/XxmCoyb9oB8ZHRQyYR2b75PA5r oWRYTbLTLLoK1Kt2P8ZUxJtmOhRtdW26c4nrfp X-Received: by 2002:a05:600c:4f42:b0:485:3cef:d6ea with SMTP id 5b1f17b1804b1-48d1426a438mr60565465e9.13.1777984885456; Tue, 05 May 2026 05:41:25 -0700 (PDT) Received: from linux ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a820c865esm388442955e9.5.2026.05.05.05.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:41:25 -0700 (PDT) From: Marco Crivellari To: linux-kernel@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Fei Li Subject: [PATCH 1/6] virt: acrn: Add WQ_PERCPU to alloc_workqueue users Date: Tue, 5 May 2026 14:40:57 +0200 Message-ID: <20260505124113.214297-2-marco.crivellari@suse.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260505124113.214297-1-marco.crivellari@suse.com> References: <20260505124113.214297-1-marco.crivellari@suse.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=UTF-8 Content-Transfer-Encoding: 8bit This continues the effort to refactor workqueue APIs, which began with the introduction of new workqueues and a new alloc_workqueue flag in: commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and system_dfl_wq") commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") The refactoring is going to alter the default behavior of alloc_workqueue() to be unbound by default. With the introduction of the WQ_PERCPU flag (equivalent to !WQ_UNBOUND), any alloc_workqueue() caller that doesn’t explicitly specify WQ_UNBOUND must now use WQ_PERCPU. For more details see the Link tag below. In order to keep alloc_workqueue() behavior identical, explicitly request WQ_PERCPU. Cc: Fei Li Link: https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/ Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/virt/acrn/irqfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virt/acrn/irqfd.c b/drivers/virt/acrn/irqfd.c index acf8cd5f8f8c..aab15f94166a 100644 --- a/drivers/virt/acrn/irqfd.c +++ b/drivers/virt/acrn/irqfd.c @@ -206,7 +206,7 @@ int acrn_irqfd_init(struct acrn_vm *vm) { INIT_LIST_HEAD(&vm->irqfds); mutex_init(&vm->irqfds_lock); - vm->irqfd_wq = alloc_workqueue("acrn_irqfd-%u", 0, 0, vm->vmid); + vm->irqfd_wq = alloc_workqueue("acrn_irqfd-%u", WQ_PERCPU, 0, vm->vmid); if (!vm->irqfd_wq) return -ENOMEM; -- 2.53.0