From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.jd.com (smtp.jd.com [58.83.206.59]) by dpdk.org (Postfix) with ESMTP id ED06AA84C for ; Wed, 17 Jan 2018 11:50:13 +0100 (CET) Received: from HUB06.360buyAD.local (172.17.27.42) by HUB03.360buyAD.local (172.17.27.17) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 17 Jan 2018 18:50:14 +0800 Received: from MBX05.360buyAD.local ([fe80::7043:229a:8a1b:2ced]) by hub06.360buyAD.local ([fe80::a522:2f79:88c6:4981%15]) with mapi id 14.03.0382.000; Wed, 17 Jan 2018 18:50:07 +0800 From: =?utf-8?B?546L5b+X5YWL?= To: "dev@dpdk.org" , Yuanhan Liu , "huawei.xie@intel.com" Thread-Topic: [PATCH v3] lib/librte_vhost: move fdset_del out of conn_mutex Thread-Index: AQHTg7G/hdi8VC7wZ0Sg+wI3ZrxvgaN3+aAA Date: Wed, 17 Jan 2018 10:50:06 +0000 Message-ID: <6DAF063A35010343823807B082E5681F41D89369@mbx05.360buyAD.local> References: <1514887716-26343-1-git-send-email-wangzhike@jd.com> In-Reply-To: <1514887716-26343-1-git-send-email-wangzhike@jd.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.27.83] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] lib/librte_vhost: move fdset_del out of conn_mutex 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: Wed, 17 Jan 2018 10:50:15 -0000 SGkgWXVhbmhhbiwgSHVhd2VpLA0KDQpDYW4geW91IHBsZWFzZSBzcGFyZSBzb21lIHRpbWUgZm9y IGNvZGUgcmV2aWV3PyBUaGFua3MuDQoNCkJyLA0KWmhpa2UNC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