From nobody Sat Feb 7 18:29:12 2026 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 44CF53081B2 for ; Fri, 14 Nov 2025 09:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763113845; cv=none; b=uRB8fC5WP6dIZdfy8puOzADbMXjvXYQFjOVObu0yJnATtw+pYe4icrEfg9VIVMcOMeSAYW4jVJH7ynA5YFIFmINgRitxhNXTJj20sBa5uPgidhoBrpVZZYVxubLnfDtxRuhKpbaJX2QtGsviw4DIcTX8nSE1njtDvv0ONnEl4dg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763113845; c=relaxed/simple; bh=PE6VO0uRFn+tr2Xl0ANytSUNsua9pk0mDP1s53cRXBo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mGiIpLJICkyiYNTLI7B0HBY7ptKZGV0yOKv4cbHZcBUgBqRoCkfPMjNCU2cvSJC9/1AifZx98X39CM+rC7NoqFtbV5ZvqGZNfWX5pE+oxlsGEKiw2uxXb3LEGmWAZHcJeaUu6i30UP1Lnj8+aH9gD7AGwmyufW4id6JWH4X0wOM= 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=LSot4ffr; arc=none smtp.client-ip=209.85.221.53 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="LSot4ffr" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-42b47f662a0so1385055f8f.0 for ; Fri, 14 Nov 2025 01:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1763113841; x=1763718641; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V1DX+q1uR6gc1I05qlwVA/APKBUcVyv5tREJfQ7NRX8=; b=LSot4ffr7zWYNj81nWmS7bp8hKHVFuGPHfWj78EzBfkmrN69hft0/rVA6RCs7Q9Sg7 X8FRDMyUa4BUk3OPlxr8RXo1kDwiVnYOCthqpCBRYJ4l4YnXt/Val9bbVO4B/c/cpK6W V/8hhmYcEz65WbGCLz4jlYRvn5ArSqo7DMnIaoHVmivbwBZsKk6G6Tvd2YnWUYKuNlgM Dk2nwjJFe4EeriOrgNolMz/kaHL0xDU1UOSIrQ2LoZkLitVncgXFKn1EQzZhS3B/cfsc en/VyITkbj25C6Rz/yk72DAd1Mrl73+GER0rmA5OzxiOAoy3hylB1lFT5VuDAdisqqmA OkmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763113841; x=1763718641; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=V1DX+q1uR6gc1I05qlwVA/APKBUcVyv5tREJfQ7NRX8=; b=F4l/07mm+CQuhoSfiZbO1pSfJ88WGgAigaMOAJo3PvS0XskmkwXlOjuygHlncau88N 1jDa5DdElqSCF2Ufzq+guMAK6dHWK8g8q4mPGG/vAH3oLX0SfiIc2c/eviZzSCoHT4rc qrUjerPpxcBi7aj8yXO4b4A1aigtKjIjI4/tI2WP+8BU2tbWLxbKlFkCc9JfJ9kiqj12 V99lis4+q8P0iRh9eig6hYMBVDuXKDSI2gr0/TBlZDOyiqhZuanrO/KxGXThC7J3sD+F lIIhVAZGXdwCfgR5l+NMWeuUrGUPs70wXhLfwi1INqgMVBkSgtjnzUMYk9izoZW4mlzH r3sQ== X-Gm-Message-State: AOJu0Yzvqd9Ih+nG1DLaiFviSemVIYB0eo/sF3B9ErL9k0Fr59OT7/Lq CvRNvKqqqiFyHZ85TrF35he2r4KYykQXREeXHtRSnpl8Jt7pV2kf6B5n4ItExbQBP2+/7Iqz/2F 7gFjC X-Gm-Gg: ASbGncuMFUpv5qlTbDIyjH7UG8G2mA01iCA8QxoTwi4ASFILyAKcd4eZen7wJXEvJaO K5VZYJk410RKgNmmnZqdvL11KKFQr4Avwvwj9fy0PVnCD44TzCpSxOsuhhn+nGp2t5R+85PwihZ 7j+qnVBj0yW7NzkV9KQZQ4MICLoCZCOy2VVZ5pFsyPaktJt9w5zVJqbxZyxG16b8Ui468D08jON ZJwSkS4UtYQa5siWc9afgtk6nPRDNKIDG6EsIF960f2V6wJTOPjQ0VyunSiVBXsXQo/8ctepBG3 WIZynJD1dAEgsJXUwxunGS+HJTjsnS5sTWl/cHDtdqpEzKRxcZHdfsEAWDge8FGrREX/3VdQuZL 3UUkNWHMNHglUlzK1SEX9N5oDfcF5SewN8pE1vrs+Ci4jMro7J9X3d5X4XOl74Y2QXtzSmIWzj7 a9DjcAhkQWNpjKU8B2JKbCBXGIq6tqlW1DwGA= X-Google-Smtp-Source: AGHT+IEL2Ofd5biLRPD37kVecsR8CM9XEJnnBSUCg9QHnFbIv+c84JIR54hworNR47DBLUx09+falg== X-Received: by 2002:a05:6000:26c6:b0:429:8bb2:d0ce with SMTP id ffacd0b85a97d-42b528147c7mr5981000f8f.18.1763113841316; Fri, 14 Nov 2025 01:50:41 -0800 (PST) Received: from localhost.localdomain ([2a00:6d43:105:c401:e307:1a37:2e76:ce91]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47787e442c2sm143853775e9.7.2025.11.14.01.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Nov 2025 01:50:41 -0800 (PST) From: Marco Crivellari To: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Cc: Tejun Heo , Lai Jiangshan , Frederic Weisbecker , Sebastian Andrzej Siewior , Marco Crivellari , Michal Hocko , Stanislav Yakovlev Subject: [PATCH] wifi: ipw2x00: replace use of system_unbound_wq with system_dfl_wq Date: Fri, 14 Nov 2025 10:50:35 +0100 Message-ID: <20251114095035.70765-1-marco.crivellari@suse.com> X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Currently if a user enqueues a work item using schedule_delayed_work() the used wq is "system_wq" (per-cpu wq) while queue_delayed_work() use WORK_CPU_UNBOUND (used when a cpu is not specified). The same applies to schedule_work() that is using system_wq and queue_work(), that makes use again of WORK_CPU_UNBOUND. This lack of consistency cannot be addressed without refactoring the API. system_unbound_wq should be the default workqueue so as not to enforce locality constraints for random work whenever it's not required. 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") Switch to using system_dfl_wq because system_unbound_wq is going away as part of a workqueue restructuring. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 6 +++--- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wir= eless/intel/ipw2x00/ipw2100.c index 215814861cbd..c7c5bc0f1650 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -2143,7 +2143,7 @@ static void isr_indicate_rf_kill(struct ipw2100_priv = *priv, u32 status) =20 /* Make sure the RF Kill check timer is running */ priv->stop_rf_kill =3D 0; - mod_delayed_work(system_wq, &priv->rf_kill, round_jiffies_relative(HZ)); + mod_delayed_work(system_percpu_wq, &priv->rf_kill, round_jiffies_relative= (HZ)); } =20 static void ipw2100_scan_event(struct work_struct *work) @@ -2170,7 +2170,7 @@ static void isr_scan_complete(struct ipw2100_priv *pr= iv, u32 status) round_jiffies_relative(msecs_to_jiffies(4000))); } else { priv->user_requested_scan =3D 0; - mod_delayed_work(system_wq, &priv->scan_event, 0); + mod_delayed_work(system_percpu_wq, &priv->scan_event, 0); } } =20 @@ -4252,7 +4252,7 @@ static int ipw_radio_kill_sw(struct ipw2100_priv *pri= v, int disable_radio) "disabled by HW switch\n"); /* Make sure the RF_KILL check timer is running */ priv->stop_rf_kill =3D 0; - mod_delayed_work(system_wq, &priv->rf_kill, + mod_delayed_work(system_percpu_wq, &priv->rf_kill, round_jiffies_relative(HZ)); } else schedule_reset(priv); diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wir= eless/intel/ipw2x00/ipw2200.c index 24a5624ef207..09035a77e775 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -4415,7 +4415,7 @@ static void handle_scan_event(struct ipw_priv *priv) round_jiffies_relative(msecs_to_jiffies(4000))); } else { priv->user_requested_scan =3D 0; - mod_delayed_work(system_wq, &priv->scan_event, 0); + mod_delayed_work(system_percpu_wq, &priv->scan_event, 0); } } =20 --=20 2.51.1