From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D7113CD8C9D for ; Thu, 13 Nov 2025 16:27:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 954A910E8B9; Thu, 13 Nov 2025 16:27:39 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="eIZJcWcA"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id DE90E10E8B8; Thu, 13 Nov 2025 16:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1763051258; x=1794587258; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=h3nrujcBusoF0SQ2oOAT+J5w7BXLt6Ag/5weFGZmhGg=; b=eIZJcWcAZTE1eFw4ILxzfiiaVYVYJ6A0rgKt4m+C4jei/0svUMWmojwE MeL5MoxLOvUUYWZWYLLZ7XI/Gyg6CAS5H8Vn4vJwAO1FuRAugyAgaWpZZ IGivJ08NoOF7LONMKZzW3lov/JBdUQi2iURvB2fyuKLhGfacvL54WHOy3 yXc3Lmndp7bKMF8wMaxGAfnZ7wcjWqwN9dw41gLw7YLWlHHdeiLlr02Ia EedpvU2eyyDyqnU6PjTwewAZBG0a7kuCKnO32TSSmtPYFPhYEtxYNvVAK GUCfJsKwOdaa+wMWjLkbUl+dTcIQfOz//EvlHBDECMLSEAsJJZ1tqBo6V A==; X-CSE-ConnectionGUID: 5n1Ok0ldT1K7tIsUW2mApg== X-CSE-MsgGUID: AKNmWnvDTMu6ylEJJ9HVZg== X-IronPort-AV: E=McAfee;i="6800,10657,11612"; a="65176182" X-IronPort-AV: E=Sophos;i="6.19,302,1754982000"; d="scan'208";a="65176182" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2025 08:27:37 -0800 X-CSE-ConnectionGUID: 098LOjq3Tr6F3fHuG5VUhw== X-CSE-MsgGUID: +GMSlqWxSnaC2LaB9MLYoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,302,1754982000"; d="scan'208";a="189971888" Received: from ijarvine-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.245.164]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2025 08:27:33 -0800 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Simon Richter , Lucas De Marchi , Alex Deucher , amd-gfx@lists.freedesktop.org, Bjorn Helgaas , David Airlie , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , linux-pci@vger.kernel.org, Rodrigo Vivi , Simona Vetter , Tvrtko Ursulin , =?UTF-8?q?Christian=20K=C3=B6nig?= , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , =?UTF-8?q?Micha=C5=82=20Winiarski?= , linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH v2 05/11] PCI: Freeing saved list does not require holding pci_bus_sem Date: Thu, 13 Nov 2025 18:26:22 +0200 Message-Id: <20251113162628.5946-6-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20251113162628.5946-1-ilpo.jarvinen@linux.intel.com> References: <20251113162628.5946-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" 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 --- 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 1a3d54563854..51f5e5a80b54 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -2513,8 +2513,8 @@ int pbus_reassign_bridge_resources(struct pci_bus *bus, struct resource *res) pci_claim_resource(dev, i); pci_setup_bridge(dev->subordinate); } - free_list(&saved); up_read(&pci_bus_sem); + free_list(&saved); return ret; } -- 2.39.5