Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp251952lqp; Wed, 22 May 2024 03:41:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAmS5wC69wZqaLnMVFlw7+h3hg3G7qikS4V9IKxmy0YPvlT/o/QIHRbMFDUGDB5cGe9AqOwPEBXaZohEk9PQwQw6P6KI/q8ULxcLl92w== X-Google-Smtp-Source: AGHT+IGmd1iHs2FeCfy/VoWQc4SUcbP0Ts5tw24cFE30W2LCxaryvXB7zcGzWHagh95QZgCacgYC X-Received: by 2002:a17:906:414e:b0:a5c:ec01:f0 with SMTP id a640c23a62f3a-a622818fef1mr101134366b.70.1716374505402; Wed, 22 May 2024 03:41:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716374505; cv=pass; d=google.com; s=arc-20160816; b=fUQOMYYzwjMgHfsyZyuxHb1c4SVYaP7aEw/PLJbHlMV7t6gq1FfJPsIV9WLsp9kjZO +VJQykndGmQXmYvJARaKia2pGAByhrMDg8x31UzogkJYPS2L2FL7XrHlFuEpsgcq6E67 iLZ4GboZciveqvswwDbEgO9VygqcBnfOIYvKzlYQfracXY3GmidARJSB4q2Sa2x6dqr8 ax/0lPk/Gbbm24rfi5h7CDMbMvwyGQdklHRV+/FDBZ52UhbLBo6UL9m0ebMAcILRG08z th9eJSXHFp/9+4TgFl3JgyUKd8YVqGzxMkpP6jSVNbDV0y0oYnN1RWDbVZzVIewiEYd3 zdaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=tdwUimt9CgiIGk2iq6kBWe6uoDQY2BVrSf3Fj4DUZbU=; fh=0ZKV22Mpi0Z+/zRlCC9GRUAKl0wLMxmYgR1nXO1NAEs=; b=pGYGjinZvLlhriPrJu9/d8UP5v/lqUTShWLaS5bRSJkRrI3Mqiq7GQlELxaJ520ENM 6zQFzHQ6Fjhm3nirllKJf4c0lunUq9Xqc3EzHzeM33vj9czgiIcFtvvloOXDmlJLcYFH OPg+JyuDV9xYTtVSGhW5dreuLJXhjwZRKr3fxikhlkv2paclrpf8hL3KznbFzgeEB/Hy fpi17+t9ykmebSWcBvrprWaZKkKcLY6uotl0Z0M7F6sizT7//u0LklTowx2itaSNsdxE GDXKBSCgLtbScRMvvKR2u0GQjIFZWb/uGmQbLRO+/0L/BLVFya/Tw/d1ZpLyWjqhqHAw uwsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=hr4SoziB; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1797c902si1496076666b.227.2024.05.22.03.41.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 03:41:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=hr4SoziB; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 157E81F21917 for ; Wed, 22 May 2024 10:41:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 019B9405CC; Wed, 22 May 2024 10:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="hr4SoziB" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F8BF823C3 for ; Wed, 22 May 2024 10:41:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716374500; cv=none; b=Qhx74Zq8BpHu2drTyyUrCQ4lvZHpEl+/JQiwpcIyic4A7+60ol/T6koCXXIdPmqf4AroTxfph8TpwOL81t2B8r6FkunLxohXNRGqOKgBbFPIjG40EKUReEHHL+kW9tUacDR+xbWQreExN0cNLI8Xi+sC3oJwXxNeZZpcD1p4MTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716374500; c=relaxed/simple; bh=N0QfiNNYGw5mdqIm2JYiag9VEAFul5A1G3cWSFJB0pg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NQ4G2yNZijveJ2ZxH1ZHhmiA8Yd0MeKMM4cR8ccNCCWeTHJ3P2yzRMv4rF7LbjiKOhcvsunPxoP/EE4dyJddJ+7cASjCUDJC+pNtkA2nlghOgG1N18a0gbPvFZDMcFuUOc5Br6zr19i6i9uGZDO9KoDCJOGPVfrXvuwsKNp3up0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=hr4SoziB; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=tdwUimt9CgiIGk2iq6kBWe6uoDQY2BVrSf3Fj4DUZbU=; t=1716374498; x=1717584098; b=hr4SoziB8ha+fLI6uQ2iQacwZc32T1lOFU/bjf6Dv6i9ra8/x1raT7v2yfAnN+pb0s2OTMMGsjo d38ATsiCUnIEneFUc+iScFZ4pl7ESfj15aVMBpySS4qVXuC579IyBdjrNigzXCBTiUZr85zA84uPW kE95ThnLzJ8lZOhlw+Tn3ey2PFDT7wxCj3dr/OijuAbN//btzDX6ylN2B/XPFbPylobmT+BlDS7FR VEh388VTt9ZmfhwwJWrbZC1fN45tSfz6nLSsC0PC3kDuYEIsdkQR6OwTPgjt+HnfmsSqKxWmAc79Q oBM+Ly0g12OL94bFAqVg73/XuVLTz0rjMv0Q==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s9jPV-000000040Kz-1KAp; Wed, 22 May 2024 12:41:29 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Miriam Rachel Korenblit Subject: [PATCH v2] wifi: cfg80211: fully move wiphy work to unbound workqueue Date: Wed, 22 May 2024 12:41:25 +0200 Message-ID: <20240522124126.7ca959f2cbd3.I3e2a71ef445d167b84000ccf934ea245aef8d395@changeid> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg Previously I had moved the wiphy work to the unbound system workqueue, but missed that when it restarts and during resume it was still using the normal system workqueue. Fix that. Fixes: 91d20ab9d9ca ("wifi: cfg80211: use system_unbound_wq for wiphy work") Reviewed-by: Miriam Rachel Korenblit Signed-off-by: Johannes Berg --- v2: also move at resume time --- net/wireless/core.c | 2 +- net/wireless/sysfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/wireless/core.c b/net/wireless/core.c index 3fb1b637352a..4b1f45e3070e 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -431,7 +431,7 @@ static void cfg80211_wiphy_work(struct work_struct *work) if (wk) { list_del_init(&wk->entry); if (!list_empty(&rdev->wiphy_work_list)) - schedule_work(work); + queue_work(system_unbound_wq, work); spin_unlock_irq(&rdev->wiphy_work_lock); wk->func(&rdev->wiphy, wk); diff --git a/net/wireless/sysfs.c b/net/wireless/sysfs.c index 565511a3f461..62f26618f674 100644 --- a/net/wireless/sysfs.c +++ b/net/wireless/sysfs.c @@ -5,7 +5,7 @@ * * Copyright 2005-2006 Jiri Benc * Copyright 2006 Johannes Berg - * Copyright (C) 2020-2021, 2023 Intel Corporation + * Copyright (C) 2020-2021, 2023-2024 Intel Corporation */ #include @@ -137,7 +137,7 @@ static int wiphy_resume(struct device *dev) if (rdev->wiphy.registered && rdev->ops->resume) ret = rdev_resume(rdev); rdev->suspended = false; - schedule_work(&rdev->wiphy_work); + queue_work(system_unbound_wq, &rdev->wiphy_work); wiphy_unlock(&rdev->wiphy); if (ret) -- 2.45.1