From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9CFA442BC4F for ; Tue, 14 Jul 2026 22:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784066666; cv=none; b=Mmt5IVxxnbyBu6RfKHmMHFtmmlmNanVeY+X4cn26fO4zW0Vx/745eyW7ypRC3dDlcLA9tKIOIvEPu4KUXlTPPMm7g2VXvy4qwUGDjdaOErRqagSIFrfqcOWNzG47vxwFPLlT2Vo1Z8C3tYpg90QLT8qOa+sJVdsWKNamTKPnQHw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784066666; c=relaxed/simple; bh=GKamvIrydQVBRiEqPC81D9MVMbFCHcNW2OhbVUUIYl8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LiapAUqgxC1yycJcITY2Z2lVd5CNfb46O/13AWEN7OdbOVuZwh50UOxC45/nQEz59IUdR2AGtUdjgZFGUi0lR17eD4CTlMBxDGe2zTNivanYWUSfdQFxClnpxxj1gHawc8zPWPsicBqeC6SeRAPAStoNrn6yJdMUiEgfthtWTsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X45n722F; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="X45n722F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8C8E1F00A3E; Tue, 14 Jul 2026 22:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784066665; bh=VtWbKXeUgjVNU037TTpMKnxhBp+P/wzxvZPQBvJWxfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=X45n722FPW8lv9MFIDB0ZOvKUVoNgQV7GovREzE1JVbCFpT/pRqOyys9xj/0nIflV 2z4oqR29SaVQeWCG8Ys1iFqzcnDE/J9H6TdI1FQ7VIj+GwwEL4cPauubqt/lUNrF7E Eu3Lf+qATgO53uXC6zXgteJ4krKGt4/qhE7EiBHoD+rlnv8A8akurk8o96KcBSEYXt KyHzgKJ7axscX6rQ4GhTFlSLc8BM7yEp+dNrJIDw1E+Xhe3yAqdsueNdW/CwZNBuC/ JcceL5HcRwHAsWrOd/bR7+LJsYxinBZuDyH/sMMe7DIkqKmBY6YnvXm4WYgBBCSYk4 0M+rHumBf8nmQ== From: Sasha Levin To: stable@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Bjorn Helgaas , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Sasha Levin Subject: [PATCH 6.12.y 3/6] PCI: Free saved list without holding pci_bus_sem Date: Tue, 14 Jul 2026 18:04:18 -0400 Message-ID: <20260714220421.3334071-3-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260714220421.3334071-1-sashal@kernel.org> References: <2026071358-dominoes-employee-70eb@gregkh> <20260714220421.3334071-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Ilpo Järvinen [ Upstream commit 1d8a0506f69895b7cfd9d5c4546761c508231a8a ] Freeing the saved list does not require holding pci_bus_sem, so the critical section can be made shorter. Signed-off-by: Ilpo Järvinen Signed-off-by: Bjorn Helgaas Tested-by: Alex Bennée # AVA, AMD GPU Link: https://patch.msgid.link/20251113162628.5946-6-ilpo.jarvinen@linux.intel.com Stable-dep-of: ee7471fe968d ("PCI: Skip Resizable BAR restore on read error") Signed-off-by: Sasha Levin --- drivers/pci/setup-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index 58dddb8b4d1d2f..fdfac3b49bcc0c 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -2400,8 +2400,8 @@ int pci_reassign_bridge_resources(struct pci_dev *bridge, unsigned long type) pci_claim_resource(bridge, i); pci_setup_bridge(bridge->subordinate); } - free_list(&saved); up_read(&pci_bus_sem); + free_list(&saved); return ret; } -- 2.53.0