Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1038188ybx; Thu, 7 Nov 2019 06:24:15 -0800 (PST) X-Google-Smtp-Source: APXvYqz6627YroCRuFuwrWVWj2m3LvROuZacmTAKgV2q/dFMPxawmrLWUC10zimjSGHic2C/1FP8 X-Received: by 2002:a05:6402:8cb:: with SMTP id d11mr3809843edz.303.1573136655165; Thu, 07 Nov 2019 06:24:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573136655; cv=none; d=google.com; s=arc-20160816; b=KtLUXh6eoib/vrr+nltuhcAbdS1RdT8W5xn0p5fgGRm+roeN9A0YY/3MO73vO74zsT tX0xbIRuiYnYugXZfgDm71RLU+d7W0ibOo61/1sW4hwwMnXH5rIjcffRHM/AEu+/wi4x Kd8M463xsBRLziWp5wKJOpFJcIe22NWyxMGCvB0/o4n78GDWkOOQeKAtxzYos2T/AqJC UIlARMtksqQKdTC3WT7rVzAwLdPu2BBDLw1GjfTqYfgfcQRvhK+HPAR8PKcEI2MPQV6D 1kca7qlj6hfGwVN/VwC8mPd45zKqWBurMnd3O/Vu6PzWGpCk4xr5yh27ZIXKCtwHdkwC C8gg== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=tg+lezQ8oMP9jKSkAPxjp+0lr+mWbWVC/QkN2zzUY1A=; b=qNtCbn/8P06/A48BWlyThd0HMfui7iKNCkxs6SZQBnxrf64PatyNe3Sm5dldOcV4ze GU7FAloWIZdURs4I5VH2ppMW6vBjIEs35mP09+V3YXdtmfdh8CkqYYI+Zg2WrudPGQpG we/vCkvy2slk+yokkQgQlCEz0aCSGKFKyWvfWLvEYPbkooe66LaK8WrgH8q6l6bjPzQd /JQJi4z0UM18RsjTdLdXtkDBr2KEmOhjAZz/nZ/lYwv1RjIPazifw1mB8uzWIa0nPhzE MnwaE997Q3mec2dIzed7j7bXyZ4ZILdziPf96VoDA9Ujb4A1xqroneIEVOxouX+WUUj5 z7wg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si1453061ejy.60.2019.11.07.06.23.51; Thu, 07 Nov 2019 06:24:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389295AbfKGOVL (ORCPT + 99 others); Thu, 7 Nov 2019 09:21:11 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:2504 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726924AbfKGOVI (ORCPT ); Thu, 7 Nov 2019 09:21:08 -0500 Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id 16F2A35A5CA297AD0A5C; Thu, 7 Nov 2019 22:21:02 +0800 (CST) Received: from dggeme707-chm.china.huawei.com (10.1.199.103) by DGGEMM402-HUB.china.huawei.com (10.3.20.210) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 7 Nov 2019 22:21:01 +0800 Received: from lhreml703-chm.china.huawei.com (10.201.108.52) by dggeme707-chm.china.huawei.com (10.1.199.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 7 Nov 2019 22:20:59 +0800 Received: from lhreml703-chm.china.huawei.com ([10.201.68.198]) by lhreml703-chm.china.huawei.com ([10.201.68.198]) with mapi id 15.01.1713.004; Thu, 7 Nov 2019 14:20:57 +0000 From: Salil Mehta To: Marc Zyngier CC: "davem@davemloft.net" , "edumazet@google.com" , "Zhuangyuzeng (Yisen)" , "lipeng (Y)" , "mehta.salil@opnsrc.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linuxarm Subject: RE: [PATCH net] net: hns: Fix the stray netpoll locks causing deadlock in NAPI path Thread-Topic: [PATCH net] net: hns: Fix the stray netpoll locks causing deadlock in NAPI path Thread-Index: AQHVlXV9oPVhm3923UeaSbHNAy05jqd/v/1g Date: Thu, 7 Nov 2019 14:20:57 +0000 Message-ID: <9c15e61f739045ee876ae3fbb1e49446@huawei.com> References: <20191106185405.23112-1-salil.mehta@huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.226.45] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWFyYywNCg0KPiBGcm9tOiBNYXJjIFp5bmdpZXIgW21haWx0bzptYXpAa2VybmVsLm9yZ10N Cj4gU2VudDogVGh1cnNkYXksIE5vdmVtYmVyIDcsIDIwMTkgMjoxMyBQTQ0KPiBUbzogU2FsaWwg TWVodGEgPHNhbGlsLm1laHRhQGh1YXdlaS5jb20+DQo+IA0KPiBIaSBTYWxpbCwNCj4gDQo+IE9u IDIwMTktMTEtMDYgMjA6MDMsIFNhbGlsIE1laHRhIHdyb3RlOg0KPiA+IFRoaXMgcGF0Y2ggZml4 ZXMgdGhlIHByb2JsZW0gb2YgdGhlIHNwaW4gbG9ja3MsIG9yaWdpbmFsbHkNCj4gPiBtZWFudCBm b3IgdGhlIG5ldHBvbGwgcGF0aCBvZiB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