Received: by 10.223.185.116 with SMTP id b49csp4146909wrg; Tue, 6 Mar 2018 10:33:28 -0800 (PST) X-Google-Smtp-Source: AG47ELuYv+D3w0R5gOY8X7dwRl93Fx6tjnL1JBl/lH6PaEXfhklgQKKp9wnPOF/gVTbLfNutfqcz X-Received: by 2002:a17:902:33a5:: with SMTP id b34-v6mr17362266plc.263.1520361208813; Tue, 06 Mar 2018 10:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520361208; cv=none; d=google.com; s=arc-20160816; b=Pa2cNWaSZLaUqz+AZ0Q/S3a0T6H1y5UADm9FLWXTvZRDxUMcIeqnCAA5OYxXNgKTzd fVnOFkqwCwLxRrLhYOfU1nMGq6kVBQ73ShLgjgzGUTG2pRzmSZ5zOyMbXo50LaKDEJyM xzPgJPINOTwdOZ1Aur8+cx4fAnrtKCwarUZQnrEz4EEDyDxDhJwqfwgWMm12tcn84t7d Mxn8qC6cc8SFxjYF+Wu0fykyIprmePQtJjj1Vl5o4ZA7EpPTzxbg+AdXPeZbkLTYIdsh 6pMbT21lBChNoRVjKdpy9ZlCm9OEsGPWSbfCXd2c5jhGvAvES4twFOAbPEpA9mqre9Xk w/GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:msip_labels :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=GYE43qwEBWv/LusnWU6+vW4I+GjRj/qponhaDvDlV5U=; b=NgU6BsgnxCQxYXc6vSzZxlbixV1oKNhVos/w+2zRxbV+kd8qeeYjWKHWnLh1jzvMgk mj2V+rxmBhNjfcY/umJurZzWp4qIF2B+E8pItGikZTJ3E5EmIXC54bWdecR345O//vmB dMC62c5bZ1VSWfA3sjf7tZDTHCjEAAsZ12qL069eHcmxjwH2RYMPPon3IptMAPWWd63r QNNUJaIESqfUFsTrgbyjbcRfPDEnIFYVn2ebXuw6cJRVMyXyZoymNUQyEzS0fN+nZ3FA NKmLW9RO81kya74CoK6t/1kr9+Xd28wu0cX49YiUMEr7g1BXA/kcuVEUKS34H5K5XPTz D50Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=OXfrE+9B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si10148740pgu.590.2018.03.06.10.33.14; Tue, 06 Mar 2018 10:33:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=OXfrE+9B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933015AbeCFSb4 (ORCPT + 99 others); Tue, 6 Mar 2018 13:31:56 -0500 Received: from mail-sn1nam01on0135.outbound.protection.outlook.com ([104.47.32.135]:56224 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932112AbeCFSbx (ORCPT ); Tue, 6 Mar 2018 13:31:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GYE43qwEBWv/LusnWU6+vW4I+GjRj/qponhaDvDlV5U=; b=OXfrE+9BDDnIPyq9YRTTg1XZ5+/Kxi9laYID72ywwAu58QMXhj+fr9QbLlaYusbgaG5zr4l8cP8C+zeAgSfgS/y4n1gcc1lsBcT18sl3AxI0iOef0+pscHE3/rxsNYXniwGGRBBg4SN+wh8YGMzP/WSa+q82Pn64HiLngZQIE2U= Received: from DM5PR2101MB1030.namprd21.prod.outlook.com (52.132.128.11) by DM5PR2101MB0805.namprd21.prod.outlook.com (10.167.105.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.1; Tue, 6 Mar 2018 18:31:51 +0000 Received: from DM5PR2101MB1030.namprd21.prod.outlook.com ([fe80::14f:785d:71f2:d396]) by DM5PR2101MB1030.namprd21.prod.outlook.com ([fe80::14f:785d:71f2:d396%4]) with mapi id 15.20.0588.001; Tue, 6 Mar 2018 18:31:50 +0000 From: "Michael Kelley (EOSG)" To: Dexuan Cui , "bhelgaas@google.com" , "linux-pci@vger.kernel.org" , KY Srinivasan , Stephen Hemminger , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" CC: "linux-kernel@vger.kernel.org" , "driverdev-devel@linuxdriverproject.org" , Haiyang Zhang , "vkuznets@redhat.com" , "marcelo.cerri@canonical.com" , Jack Morgenstein , "stable@vger.kernel.org" Subject: RE: [PATCH v3 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary Thread-Topic: [PATCH v3 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary Thread-Index: AQHTtXgDV0gFreswJ0+dCeB1Pa2oMaPDh7Bg Date: Tue, 6 Mar 2018 18:31:50 +0000 Message-ID: References: <20180306182128.23281-1-decui@microsoft.com> <20180306182128.23281-6-decui@microsoft.com> In-Reply-To: <20180306182128.23281-6-decui@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=mikelley@ntdev.microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-03-06T18:31:49.4442004Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General x-originating-ip: [24.22.167.197] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0805;7:wuC9/FFigzorUAmTzGqdIEPR1XCpwnAG5KtVDwisLIif+s3lx/bwMfe3q2mMQi9pCeIOFnQ6030SEmMzGT5H+kVUUAAaN3+VZU6R+kGmE4wciTulhNqmoo/LVCzW6Gt49txrEfKepySQCYN5CV+TDj3XS3iU6m7GwfCEgaKlwovTsmJEVqwsi/ZwdfYLrEiD4mVYVvmRbOr7GHoa/HrKUt7/3v4zW1JylTZJpP7QnuVFSiBqUo/gqRtd4Kj8Gg2y;20:6VLGEMEHsqa65+X4QhqrjBDRXHxFtfqL1bJkhBHGMsGI4kof6MMLwDakaU56+nZhDNO8552Z0dUI0G0ATgfr2ioaRhQsSII4ZGjSlD4ISOWTn5IwDqBv6KGm4lTSnNNE+uVRUVvcw0TInkmCl+UaKWZffzB3M/HLU8kSA+dhpDk= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 48bd863c-3aeb-4334-19f6-08d583908738 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(2017052603328)(7193020);SRVR:DM5PR2101MB0805; x-ms-traffictypediagnostic: DM5PR2101MB0805: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.H.Kelley@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(9452136761055)(211936372134217)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231220)(944501244)(52105095)(6055026)(61426038)(61427038)(6041288)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0805;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0805; x-forefront-prvs: 06036BD506 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(376002)(346002)(39860400002)(396003)(39380400002)(199004)(189003)(13464003)(54906003)(105586002)(8990500004)(25786009)(2201001)(59450400001)(6246003)(99286004)(7696005)(22452003)(316002)(10090500001)(76176011)(26005)(2900100001)(6436002)(6506007)(55016002)(3280700002)(53546011)(53936002)(9686003)(4326008)(110136005)(5660300001)(86612001)(1511001)(86362001)(102836004)(66066001)(97736004)(14454004)(8676002)(81166006)(33656002)(72206003)(81156014)(478600001)(74316002)(6116002)(3846002)(2950100002)(68736007)(106356001)(229853002)(10290500003)(5250100002)(2501003)(305945005)(3660700001)(7416002)(2906002)(8936002)(7736002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0805;H:DM5PR2101MB1030.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: O0Za/a9TqFPtpQr85zcwtb/Ak3FP4zrpAuDc6+2EAjtpY39XZebrJNf8zeKnBO1NXuJhmUZJ7KKPsrbig4VCASO1nVbvNAUa9ElPrE6u2tHaIfQdITa0PE7LT3eaysxRw3zkYXhiAwoZ+OYbbuYcMmTi9xfyStYZ4Kb7b7LVF9FeEl3nV1lAJkliy9SWyWXJMiQn4Qa9jPLGTvzbRnqb86OtxJ/hSRr3RmQ4C8yv+tqxVH0ghFBZvhbjMDzqJUA2XxNcrJxxwF2N4T/ELWI65C5tVe6RS9CeNjXHBqz28otkeqH+q+y6tZOQV5GANinvprI5ZPhc7LMar+lCCdgg1g== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48bd863c-3aeb-4334-19f6-08d583908738 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2018 18:31:50.8202 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0805 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Dexuan Cui > Sent: Tuesday, March 6, 2018 10:22 AM > To: bhelgaas@google.com; linux-pci@vger.kernel.org; KY Srinivasan ; > Stephen Hemminger ; olaf@aepfle.de; apw@canonical= .com; > jasowang@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-devel@linuxdriverproject.org;= Haiyang Zhang > ; vkuznets@redhat.com; marcelo.cerri@canonical.co= m; Michael > Kelley (EOSG) ; Dexuan Cui ; Jack > Morgenstein ; stable@vger.kernel.org > Subject: [PATCH v3 5/6] PCI: hv: hv_pci_devices_present(): only queue a n= ew work when > necessary >=20 > If there is a pending work, we just need to add the new dr into > the dr_list. >=20 > This is suggested by Michael Kelley. >=20 > Signed-off-by: Dexuan Cui > Cc: Vitaly Kuznetsov > Cc: Jack Morgenstein > Cc: stable@vger.kernel.org > Cc: Stephen Hemminger > Cc: K. Y. Srinivasan > Cc: Michael Kelley (EOSG) > --- > drivers/pci/host/pci-hyperv.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) >=20 Reviewed-by: Michael Kelley