Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1045248ybi; Fri, 14 Jun 2019 07:43:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVisRh6vdgNoTmIziPcSPvCazdRdyqFX8iaID3Y8exexeCjZA5mI68EIteZLyAMhXW5ZIa X-Received: by 2002:a63:a1a:: with SMTP id 26mr1881578pgk.265.1560523419554; Fri, 14 Jun 2019 07:43:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560523419; cv=none; d=google.com; s=arc-20160816; b=kjReeV7WKwjxlnQIBJQA+S3edZmVS18PflMq4CEdqoTIqGK8b/T0efGvkq3bNMoIKC 6j6s6W/3apH31uBK73eqhifdzj56yVJfh6AoIrtzNDZ7KUGeikhVzx2RlrgrHpYICwss 8LUoxdzolxtVvdlA1lvMA++zxcpmyumY+VKLlRlg/61zo4OEHEzF3PvwjpnpdtdcwLSx Tid2y/eO6J5FTRbJC1C9BNCkGt6hbLC5G/Z6lNbNgKCZbd03NP5zlb/4urMQqRxzYd0J XkiXNf2hBMx0+PthJZBCiawjWTNGHWf2Q5IHCnwLeE6fuM6xtOSGbeeyRDAnd4j81AFy oBBQ== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=hSS2WnNtLKX5nm9AtU2dd6wZz/T66Qzau2ddoL0MMuY=; b=bDmS0g/C/TRxJFI3UxlcxrGE2169gUzPphDR03Mwx04f1z8sXXkYg0iRJ8t1ppLnQ6 rmcMETWY2Qap3Y/s5bSSGipBk9Q0N9Xn042JstQ1TrtN1YijetLX/oMx1QvcR+hnTCJm 3Ymp/nvy83gL2BnC6urEPyGWtFvFQIZ1j6mGZemK5COg8sz4LPQIqx8TjCuFEOyStyhM trFpjqk8Z01MYrkKuvq9f0Q7B8i0xBUE3LxBJfIPGHktLV77fe7QhMoVvjUi+vpL8ze/ thMW9Om9ghpsaw0TmBx/OQBTYwXIe1VB4af0r2ttt8XvNhOxEaATtBa0XStZw26+wiOg zcWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=iU0D099T; 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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si2753716pgs.486.2019.06.14.07.43.23; Fri, 14 Jun 2019 07:43:39 -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=@vmware.com header.s=selector2 header.b=iU0D099T; 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=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728369AbfFNOmZ (ORCPT + 99 others); Fri, 14 Jun 2019 10:42:25 -0400 Received: from mail-eopbgr720064.outbound.protection.outlook.com ([40.107.72.64]:48082 "EHLO NAM05-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727560AbfFNOmZ (ORCPT ); Fri, 14 Jun 2019 10:42:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hSS2WnNtLKX5nm9AtU2dd6wZz/T66Qzau2ddoL0MMuY=; b=iU0D099Th3u0RUqj9wnhvXhe58BiJKlS1GagKx5JtOWXzX+tZ7w9uK0kRca2H4FpPjuBwEJsRHDfXK9sXYtfa3R2cfxMAmV6LJmSwjcbZlXbumGneJrcuRXlt7GxlbEGzU9U0Xpcz0mdhH3TKhB5s2m+yv+7CjbnSBIe9DgA16s= Received: from MN2PR05MB6208.namprd05.prod.outlook.com (20.178.241.91) by MN2PR05MB6160.namprd05.prod.outlook.com (20.178.241.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.10; Fri, 14 Jun 2019 14:41:39 +0000 Received: from MN2PR05MB6208.namprd05.prod.outlook.com ([fe80::ed54:e8f8:b67e:96]) by MN2PR05MB6208.namprd05.prod.outlook.com ([fe80::ed54:e8f8:b67e:96%4]) with mapi id 15.20.2008.002; Fri, 14 Jun 2019 14:41:39 +0000 From: Ajay Kaher To: "aarcange@redhat.com" , "jannh@google.com" , "oleg@redhat.com" , "peterx@redhat.com" , "rppt@linux.ibm.com" , "jgg@mellanox.com" , "mhocko@suse.com" CC: "yishaih@mellanox.com" , "dledford@redhat.com" , "sean.hefty@intel.com" , "hal.rosenstock@gmail.com" , "matanb@mellanox.com" , "leonro@mellanox.com" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Srivatsa Bhat , Alexey Makhalov , Greg KH , Linus Torvalds Subject: Re: [PATCH] [v4.14.y] infiniband: fix race condition between infiniband mlx4, mlx5 driver and core dumping Thread-Topic: [PATCH] [v4.14.y] infiniband: fix race condition between infiniband mlx4, mlx5 driver and core dumping Thread-Index: AQHVH4tRRHVVOX8JAkClk28/bWguy6abm6mA Date: Fri, 14 Jun 2019 14:41:39 +0000 Message-ID: <9C189085-083D-46EA-98DB-B11AD62051B6@vmware.com> References: <1560199937-23476-1-git-send-email-akaher@vmware.com> In-Reply-To: <1560199937-23476-1-git-send-email-akaher@vmware.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=akaher@vmware.com; x-originating-ip: [103.19.212.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ed3d0317-a463-4637-8d51-08d6f0d668ea x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:MN2PR05MB6160; x-ms-traffictypediagnostic: MN2PR05MB6160: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0068C7E410 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(396003)(136003)(346002)(376002)(189003)(199004)(6506007)(73956011)(2906002)(36756003)(186003)(14444005)(256004)(6512007)(25786009)(6246003)(91956017)(99286004)(7736002)(305945005)(6436002)(2616005)(476003)(6116002)(3846002)(4326008)(446003)(11346002)(102836004)(26005)(68736007)(81156014)(8676002)(110136005)(54906003)(76116006)(478600001)(316002)(229853002)(86362001)(2201001)(8936002)(71190400001)(71200400001)(14454004)(7416002)(5660300002)(66066001)(53936002)(66556008)(66446008)(64756008)(6486002)(66946007)(2501003)(33656002)(81166006)(486006)(76176011)(66476007);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR05MB6160;H:MN2PR05MB6208.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: H/PsLn65G6/iGZG0FErQsMPFAfh8AylKzUm3mw8BoE1NiDtuK/6M+MJO90yHGU1IuTlN8VVlalKxL7Ie9ua3VVmOOYPEC47s7Qrot0fNRLTQs/gmYnmK+D/uhw9em4YMF9HqmpHZ9e/jcpc7DhK9ASsjH4QYk7UVi6IASibZpLTBPKc2JHgvxbZwpJ87JDyaHcxm3FUFIWWvctvq1Ias03MqccBw/lRhiq2EVfUJNPDNQwt52PneGod6kSANLsGehcKbDada8LSAK5iLpLiCjz9h7bRK6DLCcjGh1+Yy534cFrRc+QtZz4ZZvqoRoUq4vhYdQk8AeGpRotVyI8PNhCh+YP4iLJDiwzpBX+rL2ns/LTF6YGOu+B14JELAIfFKxF/xWXSWrWsKaZ1xIbfrAULxlNLLaLRXdPLJXNg9mDM= Content-Type: text/plain; charset="utf-8" Content-ID: <13955127BE722040A2F36BA3306CE790@namprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed3d0317-a463-4637-8d51-08d6f0d668ea X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2019 14:41:39.1794 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: akaher@vmware.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR05MB6160 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQrvu79PbiAxMC8wNi8xOSwgNjoyMiBQTSwgIkFqYXkgS2FoZXIiIDxha2FoZXJAdm13YXJlLmNv bT4gd3JvdGU6DQoNCj4gVGhpcyBwYXRjaCBpcyB0aGUgZXh0ZW5zaW9uIG9mIGZvbGxvd2luZyB1 cHN0cmVhbSBjb21taXQgdG8gZml4DQo+IHRoZSByYWNlIGNvbmRpdGlvbiBiZXR3ZWVuIGdldF90 YXNrX21tKCkgYW5kIGNvcmUgZHVtcGluZw0KPiBmb3IgSUItPm1seDQgYW5kIElCLT5tbHg1IGRy aXZlcnM6DQo+IA0KPiBjb21taXQgMDRmNTg2NmU0MWZiICgiY29yZWR1bXA6IGZpeCByYW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