From patchwork Mon Dec 4 20:12:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioanna Alifieraki X-Patchwork-Id: 1871694 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SkZcR0qFzz1ySh for ; Tue, 5 Dec 2023 07:13:43 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rAFJv-0003Qq-1P; Mon, 04 Dec 2023 20:13:35 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rAFJj-0003Pe-Ei for kernel-team@lists.ubuntu.com; Mon, 04 Dec 2023 20:13:23 +0000 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D76C13F18B for ; Mon, 4 Dec 2023 20:13:22 +0000 (UTC) Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-40b443d698eso34183505e9.2 for ; Mon, 04 Dec 2023 12:13:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701720802; x=1702325602; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QElYyXRvG+LMRaeHb9Vsy5iv/bnbzrhpqvqhReCL91E=; b=bo/MZqMl/ShAInL3oHZp1u09HOwBhy4Tmis/n5sHtn5yqDqs+MySsOHX+igkavIlfy m8xsFIuc1+/SsRaKcqnHaGTpHGmYRXx6Iyg/xwGaEZfxhpCDX9x781Iat47YAzEs4O/z uRjq5gcGBUriM8vV7f8qvKONR/XMXefLgQWoqG+EEM+t3khPRSaJO1Z/ltliBuRJ7A/g WuMsCq9qdBFPB+fzozONqmN+ATW+yZKzNr0+I6hfXUTpIKh66G9q8fXDTBbB0h/CUuC/ BD9/r1VNQmtM6se9FkGHcIwbn/C2K1to3+nuDOR+AVQL/sD0YHw4tXgV5ov5aoVwS8y/ 1WXw== X-Gm-Message-State: AOJu0Yw/aBvYllN9SGTAsmrZE6MMl1/oC9AboOOFWiMiDzKCjeEePu7m 3CNtyRR2vqoBBWNIBYkEAqCNQnV/zpHDmA8j3Z+TAbmIS+Vdj8Y+DS4zUuVycAsql0i2VE0Do5f JIbGmlBjvR+QCFo+nl8fgXiJRGj1VfHROzA/u6CJgrXC6k1dzrw== X-Received: by 2002:a7b:c5d9:0:b0:40b:5e59:c575 with SMTP id n25-20020a7bc5d9000000b0040b5e59c575mr2810814wmk.159.1701720801980; Mon, 04 Dec 2023 12:13:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IExre4dEj3VgVByQ2dlW4fEYDeZrL0owN3jyQIA0RWdw2LVUUiVBSeeA8YtMPl9D1hKoCCB3w== X-Received: by 2002:a7b:c5d9:0:b0:40b:5e59:c575 with SMTP id n25-20020a7bc5d9000000b0040b5e59c575mr2810811wmk.159.1701720801653; Mon, 04 Dec 2023 12:13:21 -0800 (PST) Received: from localhost.localdomain (o5wzrf.static.otenet.gr. [2.84.75.34]) by smtp.gmail.com with ESMTPSA id o15-20020a05600c510f00b004064cd71aa8sm15001211wms.34.2023.12.04.12.13.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:13:21 -0800 (PST) From: Ioanna Alifieraki To: kernel-team@lists.ubuntu.com Subject: [PATCH][lunar/linux-azure][SRU] Revert "PCI: hv: Use async probing to reduce boot time" Date: Mon, 4 Dec 2023 22:12:44 +0200 Message-Id: <20231204201244.198810-3-ioanna-maria.alifieraki@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231204201244.198810-2-ioanna-maria.alifieraki@canonical.com> References: <20231204201244.198810-2-ioanna-maria.alifieraki@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2042568 This reverts commit 8bb7b605405db1cd47811ad65d2e737904a6f9ac. Signed-off-by: Ioanna Alifieraki --- drivers/pci/controller/pci-hyperv.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c index e74d0a5430b7..9ab332d02a63 100644 --- a/drivers/pci/controller/pci-hyperv.c +++ b/drivers/pci/controller/pci-hyperv.c @@ -2405,16 +2405,12 @@ static int create_root_hv_pci_bus(struct hv_pcibus_device *hbus) if (error) return error; - /* - * pci_lock_rescan_remove() and pci_unlock_rescan_remove() are - * unnecessary here, because we hold the hbus->state_lock, meaning - * hv_eject_device_work() and pci_devices_present_work() can't race - * with create_root_hv_pci_bus(). - */ + pci_lock_rescan_remove(); hv_pci_assign_numa_node(hbus); pci_bus_assign_resources(bridge->bus); hv_pci_assign_slots(hbus); pci_bus_add_devices(bridge->bus); + pci_unlock_rescan_remove(); hbus->state = hv_pcibus_installed; return 0; } @@ -4086,9 +4082,6 @@ static struct hv_driver hv_pci_drv = { .remove = hv_pci_remove, .suspend = hv_pci_suspend, .resume = hv_pci_resume, - .driver = { - .probe_type = PROBE_PREFER_ASYNCHRONOUS, - }, }; static void __exit exit_hv_pci_drv(void)