From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 84CEE1D7; Fri, 8 Dec 2017 03:14:34 +0100 (CET) Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Dec 2017 18:14:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,375,1508828400"; d="scan'208";a="1061649" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga006.jf.intel.com with ESMTP; 07 Dec 2017 18:14:32 -0800 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 18:14:32 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 18:14:31 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Fri, 8 Dec 2017 10:14:29 +0800 From: "Tan, Jianfeng" To: Maxime Coquelin , Victor Kaplansky , "dev@dpdk.org" , "yliu@fridaylinux.org" , "Bie, Tiwei" CC: "stable@dpdk.org" , "jfreiman@redhat.com" Thread-Topic: [PATCH] vhost_user: protect active rings from async ring changes Thread-Index: AQHTbpnxJQ34Q0Trw06BgnNCg0sNi6M3lqyw//+K7wCAAYTXcA== Date: Fri, 8 Dec 2017 02:14:29 +0000 Message-ID: References: <20171206135329.652-1-vkaplans@redhat.com> <00a522dc-2287-b3ed-7ca4-e666f6217c91@redhat.com> In-Reply-To: <00a522dc-2287-b3ed-7ca4-e666f6217c91@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH] vhost_user: protect active rings from async ring changes X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2017 02:14:35 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTWF4aW1lIENvcXVlbGlu IFttYWlsdG86bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb21dDQo+IFNlbnQ6IFRodXJzZGF5LCBE ZWNlbWJlciA3LCAyMDE3IDY6MDIgUE0NCj4gVG86IFRhbiwgSmlhbmZlbmc7IFZpY3RvciBLYXBs YW5za3k7IGRldkBkcGRrLm9yZzsgeWxpdUBmcmlkYXlsaW51eC5vcmc7IEJpZSwNCj4gVGl3ZWkN Cj4gQ2M6IHN0YWJsZUBkcGRrLm9yZzsgamZyZWltYW5AcmVkaGF0LmNvbQ0KPiBTdWJqZWN0OiBS ZTogW1BBVENIXSB2aG9zdF91c2VyOiBwcm90ZWN0IGFjdGl2ZSByaW5ncyBmcm9tIGFzeW5jIHJp bmcNCj4gY2hhbmdlcw0KPiANCj4gDQo+IA0KPiBPbiAxMi8wNy8yMDE3IDEwOjMzIEFNLCBUYW4s IEppYW5mZW5nIHdyb3RlOg0KPiA+DQo+ID4NCj4gPj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0t LS0NCj4gPj4gRnJvbTogVmljdG9yIEthcGxhbnNreSBbbWFpbHRvOnZrYXBsYW5zQHJlZGhhdC5j b21dDQo+ID4+IFNlbnQ6IFdlZG5lc2RheSwgRGVjZW1iZXIgNiwgMjAxNyA5OjU2IFBNDQo+ID4+ IFRvOiBkZXZAZHBkay5vcmc7IHlsaXVAZnJpZG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