Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4734033rwl; Tue, 28 Mar 2023 10:32:11 -0700 (PDT) X-Google-Smtp-Source: AKy350bsBbHU3TKKFm6yk9Iq/tIRFOPrFppZPpOTQPweiBFOWGMY5WKcHnwFhMtgnrKUzpR4qvMw X-Received: by 2002:a17:902:cec5:b0:19c:bcb1:d8c3 with SMTP id d5-20020a170902cec500b0019cbcb1d8c3mr20204465plg.54.1680024731642; Tue, 28 Mar 2023 10:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680024731; cv=none; d=google.com; s=arc-20160816; b=inZeG/qoua8tmfVGRA2W01bv/1sxxH2EQ2PlWrJKolRLV7/dmd0ytj9scWneRBbnzf Eqh2U95hWNbAx6g0BitQTD00jPzzrXbK9TZF9U7Q/MqemV1cCIESPjiBnZUB1HpuE2Gs B/VqjBZQ68kNOthMovJfV3LxtPTj3OUEhIN71g3hDEK5HWVFyLdgJEQJUjzdRLzRDzxH to+IvDXXLo5ETmg0/EJ4DWZbftY2WgewFQuFkGaldnu7Nj/CdR/zcctwzoPfmcjYLxSm NNfAjaEeF8OvvSk9z4PLYaZbHWI+kpCJM4nY9G5NcTn5L94ncXbevGsSfcvAZxVIiquY SNpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=qYZkZvQJto05ni0jrNL9BS/4DcO4G4o28S1CtrthMBM=; b=MuDjYZgjo3M6OHMQqyuWg4infc+ZFW1fwtqecm0H+YlHfQdVsbtbsgJaDILPXf887E t05TA2x2pVynwKOmveOOSq3dXu28XcG/9M7dsidx0KGOIjkEtWF0X1sLW9XFvHUJ6+Xx dh0ipPsGt2waMeQBBCWvI2F0CowMNMZ+Aet8kQ7Nzs8oaMvG46Q0xvAAJORsZX65Qr8l hdubrRmn41QiBwQf8x6kDLfYP6odCz5zOXDE+wD+EUgrBHqzpWRz7pDfdGWKUcKWtjbF a/Ei1Zgvlevfs0lwlTxoWq6kfdLXaQy1VzegK7wUs2gN6tb3n3kHF8AMClXEB1lqNx9O DIqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rldpunht; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020a170902989000b0019cbe4c22f6si28924390plp.516.2023.03.28.10.31.59; Tue, 28 Mar 2023 10:32:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rldpunht; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229986AbjC1RYy (ORCPT + 99 others); Tue, 28 Mar 2023 13:24:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbjC1RYu (ORCPT ); Tue, 28 Mar 2023 13:24:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E329B2D5B; Tue, 28 Mar 2023 10:24:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 87299B81D72; Tue, 28 Mar 2023 17:24:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E803EC4339B; Tue, 28 Mar 2023 17:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680024287; bh=O8m+p0zD+XNFiA03Z+/yCzyznUzLzCLRpXdQTJ8dP+Q=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=RldpunhtC07J9KzcN6AhpUCmYq+S2XB4JSuwhsGPYTfVDvDz0rkamEDIHzb53qlzY UH0NCPk2pyMqQ7XhPU4+B6QRoHbW6qopkRssgz7ZXzG87ReBJtU2RPqyNeLwxJdRgB AwvgMNJ91k3jHME+1zm+fxvIEyVp7a8YgMckCKuFvk+U/0KElQytwPOdNMnMU/2m9N 5Y0R6mjaZaipytIgrDIOlCuZGbmRAyjJh5Bhj4YoR/Ika5lg4OG5WLjyE5auzsbOud Ji65Cp3/2Dh6FTnUBinyRs/35CvO8iUXoC0swemghz7ySQWSCq5p/pvu1qJuC2Bgdc YM5GHRU5QMy7w== Date: Tue, 28 Mar 2023 12:24:45 -0500 From: Bjorn Helgaas To: Dexuan Cui Cc: Saurabh Singh Sengar , "bhelgaas@google.com" , "davem@davemloft.net" , "edumazet@google.com" , Haiyang Zhang , Jake Oshins , "kuba@kernel.org" , "kw@linux.com" , KY Srinivasan , "leon@kernel.org" , "linux-pci@vger.kernel.org" , "lpieralisi@kernel.org" , "Michael Kelley (LINUX)" , "pabeni@redhat.com" , "robh@kernel.org" , "saeedm@nvidia.com" , "wei.liu@kernel.org" , Long Li , "boqun.feng@gmail.com" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "netdev@vger.kernel.org" Subject: Re: [EXTERNAL] [PATCH 1/6] PCI: hv: fix a race condition bug in hv_pci_query_relations() Message-ID: <20230328172445.GA2951931@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 28, 2023 at 05:38:59AM +0000, Dexuan Cui wrote: > > From: Saurabh Singh Sengar > > Sent: Monday, March 27, 2023 10:29 PM > > > ... > > > --- > > Please note this special line "---". > Anything after the special line and before the line "diff --git" is discarded > automaticaly by 'git' and 'patch'. > > > > drivers/pci/controller/pci-hyperv.c | 13 +++++++++++++ > > > 1 file changed, 13 insertions(+) > > > > > > @@ -3635,6 +3641,8 @@ static int hv_pci_probe(struct hv_device *hdev, > > > > > > retry: > > > ret = hv_pci_query_relations(hdev); > > > + printk("hv_pci_query_relations() exited\n"); > > > > Can we use pr_* or the appropriate KERN_ in all the printk(s). > > This is not part of the real patch :-) > I just thought the debug code can help understand the issues > resolved by the patches. > I'll remove the debug code to avoid confusion if I need to post v2. I guess that means you *will* post a v2, right? Or do you expect somebody else to remove the debug code? If you do keep any debug or other logging, use pci_info() (or dev_info()) whenever possible. Also capitalize the subject line to match the others in the series. Bjorn