Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3819939imm; Tue, 29 May 2018 14:29:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJVU1wvuZSePIWdDT4ttooukbckv594n1A7Tt9sPAN1jEp7j093Nsr3znVZT5c8QKOMvzIC X-Received: by 2002:a62:a38d:: with SMTP id q13-v6mr88468pfl.49.1527629370674; Tue, 29 May 2018 14:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527629370; cv=none; d=google.com; s=arc-20160816; b=0s6AJrsMHN+il9zT4EO5kxVaJyJQT0fcfCPvx0lE7wYzxQTUYd5ZFtdOVQE7rVo+Mn gbfXUd18NwYDcGZltUC/dEDsqEobJ6MVduTEx6GNEoqMY3MHyQRUuGcvLKe8Vr5m6D14 bGrdKCfQosU7Oi2vmVif9gHpiEndFrSj9pgANSlDdYyKQSHlLg0NGNglcrQ0FydQ9tVl 8iNPOYTbCE1O+5UN3gWkXtV/8PkLkgLeOPc9McsNjChg1JUsmxCHZ+V2a8wnC8iSCFws PsytPq+kBQth4cDng6Q78v16ISkERGAY3v0DVq0vcezixP+G6Vv49yq4fse1aVWeAUwf Jt2Q== 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=SkPPol1OTX8VnRLWBHvY3w2SHQFcQI2Va5qubcPjnmQ=; b=fWKv8b+ypDOosPPp1RRRS9jUSGhoCBSM3Qw3gtiEDO5owevKejdKkeY03SeaBTgmWZ 7Rg6tHki3eVmWd64Ai33JdLzePnen0Ne0qMwLN99aTB30rYL7u//qjF1Ah3mg2IkdDSE okJ19gAHOzIadE6n3QZML3j2+MSs8ell3XWIjMi1C5EKBm+sZA/L51r9mKO/CIIDD8/j wQhVeOpZlmzd1R97FdsrHUqI6pkJ6ClBr+SCGmUy7RnoCB64ThDgrV4ia4EmNF5ceCGh kSPRQJlcEp7cWWaW/bn7Uck/k7CsqA7W1FkYpoNiiLjfJgRgnAJfyyHC2sSdemqoFlHy J/kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=G5DJEfOh; 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 g2-v6si16666153pgu.48.2018.05.29.14.29.14; Tue, 29 May 2018 14:29:30 -0700 (PDT) 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=G5DJEfOh; 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 S967007AbeE2V2r (ORCPT + 99 others); Tue, 29 May 2018 17:28:47 -0400 Received: from mail-sg2apc01on0093.outbound.protection.outlook.com ([104.47.125.93]:63552 "EHLO APC01-SG2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966689AbeE2V2p (ORCPT ); Tue, 29 May 2018 17:28:45 -0400 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:X-MS-Exchange-SenderADCheck; bh=SkPPol1OTX8VnRLWBHvY3w2SHQFcQI2Va5qubcPjnmQ=; b=G5DJEfOhyXhpy0pi79akQrtA3pPidkMIRGk4ZzwIEY2VR2rQjA6xSzt0A9meBvacOpIviKD8EhE4S8W8oWwtcTYeLjEbV1v2e47mOQ74zXNuLV2CjRV3SRKlxYP/a/b+T2QXWuAp0StutBOwLtE1OsPRDVfqmgROyscnTFWQdbo= Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM (10.170.167.17) by KL1P15301MB0037.APCP153.PROD.OUTLOOK.COM (10.170.167.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.2; Tue, 29 May 2018 21:28:28 +0000 Received: from KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([10.170.167.17]) by KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM ([10.170.167.17]) with mapi id 15.20.0820.001; Tue, 29 May 2018 21:28:27 +0000 From: Dexuan Cui To: Andy Shevchenko CC: Lorenzo Pieralisi , Bjorn Helgaas , "linux-pci@vger.kernel.org" , KY Srinivasan , Stephen Hemminger , "olaf@aepfle.de" , "apw@canonical.com" , "jasowang@redhat.com" , "linux-kernel@vger.kernel.org" , "driverdev-devel@linuxdriverproject.org" , Haiyang Zhang , "vkuznets@redhat.com" , "marcelo.cerri@canonical.com" Subject: RE: [PATCH] PCI: hv: Do not wait forever on a device that has disappeared Thread-Topic: [PATCH] PCI: hv: Do not wait forever on a device that has disappeared Thread-Index: AdPy2mt/5cq5najeS4qpn1DMFXGqNwEuINyAAAAbfpA= Date: Tue, 29 May 2018 21:28:27 +0000 Message-ID: References: In-Reply-To: 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=decui@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-05-29T21:28:22.9354318Z; 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 authentication-results: spf=none (sender IP is ) smtp.mailfrom=decui@microsoft.com; x-originating-ip: [2001:4898:80e8:2:79b1:3e78:f1d:8005] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;KL1P15301MB0037;7:cluQQgNNZNsD/gMPq3z5qTcq/5s0wsg23HQgvTRUKVMpqSe5v+PRNYrRKIKgXkrsjRdYukFyqW7WNLyoeL48Y/Wpy4tNZZTKU1ki9z14bfDdTu2eaI/lV037WHdfdLCh2sELJ8JO3pkAWuDtLbcS4AR77AOMxarvdS1jT9YNAtnOUcOdTrarg6xfQ0cT6lGPG+nNaSJGAeXFjjMwuFs+7+5Pstd25PsaAydrwZx3tTkDSNgdrgFIUJcPPRssPAGn;20:OGReJhwJkjM5YxiEK8SFy2XtXwb7Q76ab1II61V7pGSi8D75q7hVdoSi3Yw4Qhis8WmqY7LMb0t2W+IWVLoE3XibCj00uSfIHRIskCHQG5TO12aZiZs2wpbATQf/mxGdeIh+z40qKaMy9WE3Vv0TtVZ3YHpcVYwoIk9+gwl0V5g= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:KL1P15301MB0037; x-ms-traffictypediagnostic: KL1P15301MB0037: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(244540007438412)(89211679590171)(85827821059158); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:KL1P15301MB0037;BCL:0;PCL:0;RULEID:;SRVR:KL1P15301MB0037; x-forefront-prvs: 0687389FB0 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39380400002)(346002)(39860400002)(376002)(51914003)(199004)(189003)(39060400002)(486006)(6116002)(6246003)(446003)(11346002)(7696005)(476003)(10090500001)(86612001)(54906003)(86362001)(99286004)(6916009)(3280700002)(10290500003)(3660700001)(46003)(53936002)(22452003)(316002)(305945005)(81166006)(55016002)(186003)(6436002)(2900100001)(478600001)(74316002)(33656002)(8676002)(5660300001)(6506007)(81156014)(105586002)(106356001)(7416002)(8936002)(7736002)(2906002)(14454004)(229853002)(68736007)(25786009)(8990500004)(76176011)(53546011)(9686003)(102836004)(59450400001)(97736004)(77096007)(4326008);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1P15301MB0037;H:KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 9T5jT/ZpyE/Xx5qXq7LVOjIy5ZDfGnaqtHfsF692eZgam+d4oCKvhjqkEy3TX+K/bk1iij2kW3rQrzPs5eOCFq2x5wzsUOk16GfrDYBvS7FroasYdnev5pETE9Qt87ZkG4z+kLFmCvnmXdf60drdCp1NNY3asaEgstEHsthORBO9oLuj6ZZXxy4sXtOGMGU4 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: fcad9084-26f4-44b2-3001-08d5c5ab1e1c X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: fcad9084-26f4-44b2-3001-08d5c5ab1e1c X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2018 21:28:27.2902 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1P15301MB0037 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBBbmR5IFNoZXZjaGVua28gPGFuZHkuc2hldmNoZW5rb0BnbWFpbC5jb20+DQo+IFNl bnQ6IFR1ZXNkYXksIE1heSAyOSwgMjAxOCAxNDoyMQ0KPiBPbiBUaHUsIE1heSAyNCwgMjAxOCBh dCAxMjoxMiBBTSwgRGV4dWFuIEN1aSA8ZGVjdWlAbWljcm9zb2Z0LmNvbT4NCj4gd3JvdGU6DQo+ ID4NCj4gPiBCZWZvcmUgdGhlIGd1ZXN0IGZpbmlzaGVzIHRoZSBkZXZpY2UgaW5pdGlhbGl6YXRp b24sIHRoZSBkZXZpY2UgY2FuIGJlDQo+ID4gcmVtb3ZlZCBhbnl0aW1lIGJ5IHRoZSBob3N0LCBh bmQgYWZ0ZXIgdGhhdCB0aGUgaG9zdCB3b24ndCByZXNwb25kIHRvDQo+ID4gdGhlIGd1ZXN0J3Mg cmVxdWVzdCwgc28gdGhlIGd1ZXN0IHNob3VsZCBiZSBwcmVwYXJlZCB0byBoYW5kbGUgdGhpcw0K PiA+IGNhc2UuDQo+IA0KPiA+ICsgICAgICAgd2hpbGUgKHRydWUpIHsNCj4gPiArICAgICAgICAg ICAgICAgaWYgKGhkZXYtPmNoYW5uZWwtPnJlc2NpbmQpIHsNCj4gPiArICAgICAgICAgICAgICAg ICAgICAgICBkZXZfd2Fybl9vb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