Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964789AbcKPXfB (ORCPT ); Wed, 16 Nov 2016 18:35:01 -0500 Received: from mail-by2nam03on0091.outbound.protection.outlook.com ([104.47.42.91]:62976 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753265AbcKPXe7 (ORCPT ); Wed, 16 Nov 2016 18:34:59 -0500 From: KY Srinivasan To: Dexuan Cui CC: Bjorn Helgaas , "linux-pci@vger.kernel.org" , "devel@linuxdriverproject.org" , "gregkh@linuxfoundation.org" , Haiyang Zhang , "Stephen Hemminger" , Jake Oshins , "Hadden Hoppert" , Vitaly Kuznetsov , "jasowang@redhat.com" , "apw@canonical.com" , "olaf@aepfle.de" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 0/3] PCI: hv: clean-up and 2 fixes to the hot-remove case Thread-Topic: [PATCH 0/3] PCI: hv: clean-up and 2 fixes to the hot-remove case Thread-Index: AdI7Ikv59a/qvf2QR6ixj6Z7HlniIgFOVHEAAAEMFpA= Date: Wed, 16 Nov 2016 23:19:46 +0000 Message-ID: References: <20161116224858.GC16042@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20161116224858.GC16042@bhelgaas-glaptop.roam.corp.google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=kys@microsoft.com; x-originating-ip: [131.107.159.171] x-o365ent-eop-header: Message processed by - O365_ENT: Allow from ranges (Engineering ONLY) x-microsoft-exchange-diagnostics: 1;DM5PR03MB2666;7:GPkxSgFxy34mPa72WaI8m3lX52IFQjpzYhdxcAbI4txbcovymCIvIvG+TfW8Rpekzg1G4PI8MWGc8UqVtMsZoi1vTcXAU+nlyQ/oxRevXsQ1OWzi+Kb+FgGNtf0RAbFoQW9QOtc8E7BERrSsqYpCSqn47f+PsGvHLdh2rax6iHCwIR1d/km1M0KBP34sIuYe5KWY+1cyOoclb/MslUheU4oprZfZFex/jzckgsZ4y5LqU4LFSjUFECctIyrlqXsTJKX/QHziRH7ueCkJXl6UTA7EbUSJxU2gqoBn6cIKFtMFqfr2ddmIpeXzYNufS28vRNrmIudt0BxPi6BI3LCRCBH2Y2FEeEjUllsszaSKjGSfEXD2Us82XkGqGA4kjvNP x-ms-office365-filtering-correlation-id: ecb0e3ba-2a3d-444c-08f6-08d40e770e1c x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR03MB2666; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(211936372134217)(198206253151910); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040281)(6060326)(6045074)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038)(6061324)(6046074)(6041223)(6072148)(6047074);SRVR:DM5PR03MB2666;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2666; x-forefront-prvs: 01283822F8 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(24454002)(189002)(13464003)(199003)(377454003)(10290500002)(4326007)(5005710100001)(8990500004)(7696004)(54356999)(76176999)(50986999)(2561002)(2900100001)(110136003)(5660300001)(2421001)(2906002)(8936002)(68736007)(105586002)(106356001)(122556002)(9686002)(99286002)(10090500001)(81156014)(6116002)(101416001)(81166006)(3846002)(76576001)(6862003)(2950100002)(189998001)(102836003)(3280700002)(3660700001)(229853002)(8676002)(6506003)(33656002)(87936001)(97736004)(66066001)(305945005)(86612001)(1511001)(7736002)(7846002)(92566002)(6636002)(74316002)(77096005)(86362001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR03MB2666;H:DM5PR03MB2490.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Nov 2016 23:19:46.4866 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2666 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uAGNZ6dw006566 Content-Length: 2082 Lines: 49 > -----Original Message----- > From: Bjorn Helgaas [mailto:helgaas@kernel.org] > Sent: Wednesday, November 16, 2016 2:49 PM > To: Dexuan Cui > Cc: Bjorn Helgaas ; linux-pci@vger.kernel.org; > devel@linuxdriverproject.org; gregkh@linuxfoundation.org; KY Srinivasan > ; Haiyang Zhang ; Stephen > Hemminger ; Jake Oshins > ; Hadden Hoppert ; > Vitaly Kuznetsov ; jasowang@redhat.com; > apw@canonical.com; olaf@aepfle.de; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 0/3] PCI: hv: clean-up and 2 fixes to the hot-remove case > > On Thu, Nov 10, 2016 at 07:16:22AM +0000, Dexuan Cui wrote: > > PATCH 1 is just a clean-up. There should be no functional change. > > > > PATCH 2 and 3 are for device hot-remove case. > > Currently the driver will stop working or even cause panic, if we do > > hot add/remove quickly a few times. With the 2 patches, everything works > > reliably in my tests now. > > > > There can be still a potential issue with hot-remove when we unload > > the driver at the same time. That would require more work of proper > > synchronization among the 3 paths: the .probe/.remove, the channel > callback, > > and the offloaded hv_pci_devices_present()/hv_eject_device_work(). > > > > But for now, PATCH 2 and 3 do improve the situation a lot. > > > > Dexuan Cui (3): > > PCI: hv: use the correct buffer size in new_pcichild_device() > > PCI: hv: fix hv_pci_remove() for hot-remove > > PCI: hv: delete the device earlier from hbus->children for hot-remove > > > > drivers/pci/host/pci-hyperv.c | 67 ++++++++++++++++++++++++++------- > ---------- > > 1 file changed, 40 insertions(+), 27 deletions(-) > > I applied all three of these to pci/host-hv for v4.10, thanks! > > Jake, I converted your "looks good to me" to Reviewed-by tags. > > K. Y., I added your acks on 2 & 3. If you acked 1, I missed it. Thanks Bjorn; I thought I had acked all three, but that is ok. K. Y