From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 34A09143C45; Wed, 19 Jun 2024 12:58:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718801901; cv=none; b=QI9N8J6O+L5UVaLw1bN9j1Kfk2nMSFYuDNir3+c3hQtiAj+5lZt3hcx8uvCRTAggXWim4zpJI4Y4u6IH0MhHSdOlVzNdeV0m9jbSVYi3Jz7OSxnMU62Bz1oBEhhw3QtPafWI6ulGWZuO+fyC9AhvoY2sb62I4FJmC4BZIfdMpjY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718801901; c=relaxed/simple; bh=Vbc504efNP2rmVszqkpmhvlpegRiwtSvnr0eWswsuBs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NtrzoelHtyyLMSeJNi6SIl3hIR3ZFMRmC0H8cq+LYLSQrR5WQqjAPFh6YCfPt4fvz728NNnYjtqRN+2/KlSm1X6uYxKseJ6HLvVQ/EawX5XjsztRZ71lUcsKA/Ep8UO8EJJbMRS3ULgqoIoghYoxM9wI6fyCLspk4iAVVEnpzlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A/yFHKRO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="A/yFHKRO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2337C2BBFC; Wed, 19 Jun 2024 12:58:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718801901; bh=Vbc504efNP2rmVszqkpmhvlpegRiwtSvnr0eWswsuBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A/yFHKROMrHLRuaKHNT6iOEAqXx6eiTi58Sz3Uo4emoYUeYNw0ilIt3VLhaDuoqVS 7qofzmaguxhOxwYu/l8mHU66hcRBh2Kuf39IL2tvayEKM1d7ChY4jkg5IyVzwsSf8g 5qf7B/vCnObszC0isdNp9dpM15XMguUno1f8ChwM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Miriam Rachel Korenblit , Johannes Berg , Sasha Levin Subject: [PATCH 6.6 003/267] wifi: cfg80211: fully move wiphy work to unbound workqueue Date: Wed, 19 Jun 2024 14:52:34 +0200 Message-ID: <20240619125606.484111392@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240619125606.345939659@linuxfoundation.org> References: <20240619125606.345939659@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johannes Berg [ Upstream commit e296c95eac655008d5a709b8cf54d0018da1c916 ] 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 Link: https://msgid.link/20240522124126.7ca959f2cbd3.I3e2a71ef445d167b84000ccf934ea245aef8d395@changeid Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- 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 ff743e1f2e2cb..68aa8f0d70140 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 565511a3f461e..62f26618f6747 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.43.0