From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0056.outbound.protection.outlook.com [104.47.1.56]) by dpdk.org (Postfix) with ESMTP id 359E791 for ; Thu, 8 Nov 2018 08:08:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HjPKOoJhYkJfNDQ/wTkkVtneWc9BV63Sow2XArOzFHU=; b=p9kgKD2YQjtVL9t2E7l3l3xzfHI+/jLENGkjM6Ynz9DloEUQ6J1Gc8UyyTu5C2MEBKd62cVCFqUEZDYisPIMaoNSPcN4QjchdxCRL5BIVAFksUsHsXMUM6gsZmwPK6kAD1pi/z4zoFL3mrx9c08l2ihXE14GvQjbII6NHZaSBBo= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.41.11) by AM0PR0502MB3891.eurprd05.prod.outlook.com (52.133.48.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Thu, 8 Nov 2018 07:08:49 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::b158:af20:5026:3d25]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::b158:af20:5026:3d25%2]) with mapi id 15.20.1294.034; Thu, 8 Nov 2018 07:08:49 +0000 From: Matan Azrad To: Jeff Guo , "konstantin.ananyev@intel.com" , "anatoly.burakov@intel.com" , Thomas Monjalon , "bernard.iremonger@intel.com" , "jingjing.wu@intel.com" , "wenzhuo.lu@intel.com" CC: "ferruh.yigit@intel.com" , "dev@dpdk.org" , "helin.zhang@intel.com" , "shaopeng.he@intel.com" Thread-Topic: [PATCH 1/3] eal: fix lock issue for hot-unplug Thread-Index: AQHUdZZ66ub+GmSlpEGmt4z4Lo/60KVCRl1wgAGJpgCAAahlwA== Date: Thu, 8 Nov 2018 07:08:49 +0000 Message-ID: References: <1541484436-91320-1-git-send-email-jia.guo@intel.com> <1541484436-91320-2-git-send-email-jia.guo@intel.com> In-Reply-To: Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR0502MB3891; 6:AbpqLrj/i8+9qsL/OhoqnSzwdmDUFWpVuIIcSpr438xpASmfWZNk3dmWWWcxk/uFvCGI71Mf8Olnhq5HTpDc/oX3tmJg1/fCyK/yrIbC8ytY4EaUUZ+3sxVVlqibSvAO66aNI2kGLskEZZwX9+GYrMEaIYfck0lu6VoXTGKvOoNthOaIJUpOGSIO0zl1LCYLqfXmZWmuBy71TeZYpq5bMpgfJNVM9IQQGm3DZj1SY5hpsU234ja/XWBrCtuI98b+2LSVQT58y8O9pPqtAQBsefeFbIk4KlhwA31ZWyyL2J/A5ydBsuQYCyfMiEHz+g1Zu1Gvek+VEJKWC4f1l5R2lCN0i4+oLf45UZRq9jKDWvMmDkz/9eWxyU4oHzZL9kZTFKB6IOmImeSSBcHFDiM0EBvg1iqKDyGBE7itiznimCp+R2aNIDQeo3Ju9WsG0zPxVsPD8vr5mPs+0vnl4rOvXA==; 5:SEqd3vybEGHSbb1ptgcI2ad22zsvtumESd9MPkiW6OZvBvM/EpHxrp0ALzSrNqv5+s8BeS1ag6ZCxStr3EqS8KMzYxD+H1w3awrhNS69VUDBVh8f7ARTG9/4X8n+TsvLGR/Il4Mnkq6zyARm2jyXGXu+aOW+MBuFS9diPnAfn7I=; 7:3zmS75drxG2MGKiuJAOAeUOuzF/rEATk8betNF7XsxEsywZfV0ZMR3gB9MMYrY/GgEB4+XABBA5ZyGfe5k/ZTNG3dp0OHT/pmMu7v8U7LAba7/bJfdFsBlatBPTfIl9s7XvNSUqW6MMDP2aPjAUUtg== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 8f5dffa2-8d7b-4f0a-b01e-08d64549083d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR0502MB3891; x-ms-traffictypediagnostic: AM0PR0502MB3891: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231382)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:AM0PR0502MB3891; BCL:0; PCL:0; RULEID:; SRVR:AM0PR0502MB3891; x-forefront-prvs: 0850800A29 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(346002)(366004)(376002)(396003)(189003)(199004)(13464003)(26005)(478600001)(3846002)(6116002)(6436002)(229853002)(55016002)(105586002)(2900100001)(2906002)(7736002)(106356001)(9686003)(186003)(8676002)(8936002)(14454004)(81156014)(81166006)(71200400001)(54906003)(110136005)(71190400001)(99286004)(7696005)(11346002)(316002)(2501003)(33656002)(446003)(2201001)(486006)(476003)(6246003)(4326008)(68736007)(86362001)(5660300001)(256004)(74316002)(14444005)(53936002)(102836004)(66066001)(305945005)(6506007)(53546011)(7416002)(76176011)(97736004)(25786009)(93886005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3891; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: YNqTXNXV+DsFhXtRG2Cc5RleN0IL12xoHyJ/oJW7Eww6G5+D+CPIyaBus75esVHgY6vHINA/LMbrDPVACAoONh0tkd/CIMbHHGZb/Xkf+oXL0km8ZyFLJdylvEOJj2T+595hBnCzON1rJ6o9Y1CHDay9bOTwt8VXfs+TqGKarUZTdepJoAOrhW50MXydkuSKh3X35xlxiForq2bERrZjAHw4o9SeqQ7+1xNQGb1eZTINY4tpe5o/wPzvKN5ly2EFdzeFfetChtsuSaKg29wswgeSRecg43PDIkG6oQLDObSa2tzC4H8uOGouA9XLxG94YEPQ7JFLcM4OP1Txj1hrDBULQCJzWq7IyxiICuHLxuI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f5dffa2-8d7b-4f0a-b01e-08d64549083d X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2018 07:08:49.1482 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3891 Subject: Re: [dpdk-dev] [PATCH 1/3] eal: fix lock issue for hot-unplug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2018 07:08:51 -0000 DQoNCkZyb206IEplZmYgR3VvIA0KPiBoaSBtYXRhbg0KPiANCj4gT24gMTEvNi8yMDE4IDI6MjIg UE0sIE1hdGFuIEF6cmFkIHdyb3RlOg0KPiA+IEhpIEplZmYNCj4gPg0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