From patchwork Wed Dec 6 17:36:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioanna Alifieraki X-Patchwork-Id: 1872927 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 4Sll3039HTz23nD for ; Thu, 7 Dec 2023 04:37:15 +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 1rAvpY-000281-Cu; Wed, 06 Dec 2023 17:37:04 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rAvpM-000261-99 for kernel-team@lists.ubuntu.com; Wed, 06 Dec 2023 17:36:54 +0000 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (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-0.canonical.com (Postfix) with ESMTPS id AEEA73F442 for ; Wed, 6 Dec 2023 17:36:51 +0000 (UTC) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-54cd896ead4so83682a12.1 for ; Wed, 06 Dec 2023 09:36:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701884211; x=1702489011; 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=W00q7ZPRpHZmYgnL70X04DDEjsmEfKUA1/RIryo44DmaAIwBRBKpu1gF87o8R8hKPy y6TjuNUFPcyuAtdRyVI6LrQx0eJDXnO37JIna10FDXPywZOV9O/bQKn8XO2EuBAs3fvl mx1dA5IE+DQRGm5RRduQCEHl6JuxjDehwVugPF2gx2X6E1XQzT9BmBn0kgjT49U8In+9 I2wv1tMZZ9y+jZ0UnSMa/iCCB8YZB8prNscZsIO7YTZ2BGGpvXWh5O2j5V0N6MUUYKb3 2Dyo7jJ7j/moxZZ7TsnDsvukv6A3WqB1x2IRFmgMzIv+tRVSNlFyBwFCeF9DMqsWuJ/Q aMZw== X-Gm-Message-State: AOJu0YzZqCoaZO+Mzd3KGHz4seiD9iOvC4xpRemOIdnBuUnvJZ5R40BB VD2+vQYvtQ+BooGmd8iXvAVs+jIF2z9eQ3MXxQaUVEZAIxvyrXOEd67YzIgFg5fMVizQXA76Ml2 rFnQbiyRdiQz0Cp4hBBrrN7M9m1PqSXcHSj8yK19BB6oH/AIlrQ== X-Received: by 2002:a50:9f6a:0:b0:54c:a78e:efc0 with SMTP id b97-20020a509f6a000000b0054ca78eefc0mr1632488edf.30.1701884211096; Wed, 06 Dec 2023 09:36:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0+mzDXvRQsWCP4dVvFx2ldXsF+kaOMXnsVaLyBVKFYwYLMcu5UUfLqZBpV1XpgU6CuL2WWw== X-Received: by 2002:a50:9f6a:0:b0:54c:a78e:efc0 with SMTP id b97-20020a509f6a000000b0054ca78eefc0mr1632479edf.30.1701884210886; Wed, 06 Dec 2023 09:36:50 -0800 (PST) Received: from localhost.localdomain (o5wzrf.static.otenet.gr. [2.84.75.34]) by smtp.gmail.com with ESMTPSA id y14-20020aa7c24e000000b0054ce9ef93fbsm221426edo.4.2023.12.06.09.36.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 09:36:50 -0800 (PST) From: Ioanna Alifieraki To: kernel-team@lists.ubuntu.com Subject: [SRU][lunar/linux-azure][PATCH 1/1] Revert "PCI: hv: Use async probing to reduce boot time" Date: Wed, 6 Dec 2023 19:36:36 +0200 Message-Id: <20231206173636.163055-3-ioanna-maria.alifieraki@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231206173636.163055-1-ioanna-maria.alifieraki@canonical.com> References: <20231206173636.163055-1-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)