From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 432E5A0583; Thu, 19 Mar 2020 09:11:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3ECD81C02B; Thu, 19 Mar 2020 09:10:54 +0100 (CET) Received: from m13-43.163.com (m13-43.163.com [220.181.13.43]) by dpdk.org (Postfix) with ESMTP id 428DC1C07C; Wed, 18 Mar 2020 04:31:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=3jN+K pojyuF25BdZAhp4X0SWoUT1f71xC0ExZMZrsMs=; b=GIK/g9R2p8oafjiv3X9M/ BwU1rOHPN8JUP09bjOjMA89DbBriWIfou2N34i24uXJtwwIlTEtuqtNiu1GWe7mQ DBaZHKoD3UhN8UWNRoe/ntsptFiOzFg/sK4va+snhZvCMfrA6c65HWXVbYRpMX0P RaU1I0Bc1yHdwwwB+8/gsQ= Received: from wangzk320$163.com ( [106.38.115.13] ) by ajax-webmail-wmsvr43 (Coremail) ; Wed, 18 Mar 2020 11:31:27 +0800 (CST) X-Originating-IP: [106.38.115.13] Date: Wed, 18 Mar 2020 11:31:27 +0800 (CST) From: =?GBK?B?zfXWvr/L?= To: "Zhike Wang" , dev@openvswitch.org Cc: dev@dpdk.org, maxime.coquelin@redhat.com, xiaolong.ye@intel.com, zhihong.wang@intel.com, stable@dpdk.org X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.10 build 20190724(ac680a23) Copyright (c) 2002-2020 www.mailtech.cn 163com In-Reply-To: <1584007039-12437-1-git-send-email-wangzhike@jd.com> References: <1584007039-12437-1-git-send-email-wangzhike@jd.com> X-CM-CTRLDATA: Wt3tfGZvb3Rlcl9odG09MzM3ODo1Ng== MIME-Version: 1.0 Message-ID: <178ab8fa.363e.170ebb22d94.Coremail.wangzk320@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: K8GowABHxO4PlnFe+yMCAA--.19104W X-CM-SenderInfo: pzdqw6bntsiqqrwthudrp/1tbipRPqulUMXLdmugADsL X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Mailman-Approved-At: Thu, 19 Mar 2020 09:10:51 +0100 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] vhost: return -EAGAIN during unregistering vhost if it is busy. 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SW52b2x2ZSBvcGVudnN3aXRjaCBncm91cCBzaW5jZSB0aGlzIGZpeCBpcyBoaWdobHkgY291cGxl ZCB3aXRoIE9WUy4Kd2VsY29tZSBjb21tZW50LgpBdCAyMDIwLTAzLTEyIDE3OjU3OjE5LCAiWmhp a2UgV2FuZyIgPHdhbmd6aGlrZUBqZC5jb20+IHdyb3RlOgo+VGhlIHZob3N0X3VzZXJfcmVhZF9j YigpIGFuZCBydGVfdmhvc3RfZHJpdmVyX3VucmVnaXN0ZXIoKQo+Y2FuIGJlIGNhbGxlZCBhdCB0 aGUgc2FtZSB0aW1lIGJ5IDIgdGhyZWFkcywgYW5kIG1heSBsZWFkIHRvIGRlYWRsb2NrLgo+RWcg dGhyZWFkMSBjYWxscyB2aG9zdF91c2VyX3JlYWRfY2IoKS0+dmhvc3RfdXNlcl9nZXRfdnJpbmdf YmFzZSgpLT5kZXN0cm95X2RldmljZSgpLAo+dGhlbiB0aHJlYWQyIGNhbGxzIHJ0ZV92aG9zdF9k cml2ZXJfdW5yZWdpc3RlcigpLCBhbmQgd2lsbCByZXRyeSB0aGUgZmRzZXRfdHJ5X2RlbCg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