From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4BF7BA034F; Tue, 30 Mar 2021 03:20:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0ABA1140EC5; Tue, 30 Mar 2021 03:20:42 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id C07D7406B4 for ; Tue, 30 Mar 2021 03:20:40 +0200 (CEST) IronPort-SDR: ByY+Cqg6lWc8bR6/v9qCKp4KYrqhIFlkgtb5g1EUfsjExX30PrZ44k31So/lc6PXZpWJfiaVDX v65wzjVOu80w== X-IronPort-AV: E=McAfee;i="6000,8403,9938"; a="211863837" X-IronPort-AV: E=Sophos;i="5.81,289,1610438400"; d="scan'208";a="211863837" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2021 18:20:35 -0700 IronPort-SDR: ea8nspwg+YykddTgRJEcmW/BlQJcrm+ZkWYEPaRcIhKRgiaAtEJ/bDfUimOUuJVn9KVbo2TAS+ QvvYqnl3CFuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,289,1610438400"; d="scan'208";a="516234040" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga001.fm.intel.com with ESMTP; 29 Mar 2021 18:20:35 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 29 Mar 2021 18:20:34 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 30 Mar 2021 09:20:32 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.2106.013; Tue, 30 Mar 2021 09:20:32 +0800 From: "Hu, Jiayu" To: Maxime Coquelin , "dev@dpdk.org" CC: "Xia, Chenbo" , "Wang, Yinan" , "Jiang, Cheng1" , "Pai G, Sunil" Thread-Topic: [PATCH 3/4] vhost: avoid deadlock on async register Thread-Index: AQHXGvZ878TO+gHi9EqCHK+dNHp7FaqaoaqAgAEmH1A= Date: Tue, 30 Mar 2021 01:20:32 +0000 Message-ID: <75b23d7a233b46a9bcf56d3dde9c7bc7@intel.com> References: <1615985773-406787-1-git-send-email-jiayu.hu@intel.com> <1615985773-406787-4-git-send-email-jiayu.hu@intel.com> <8cd04e21-8acd-7fe6-c0c3-dc162c137c4a@redhat.com> In-Reply-To: <8cd04e21-8acd-7fe6-c0c3-dc162c137c4a@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 3/4] vhost: avoid deadlock on async register X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" SGkgTWF4aW1lLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1heGlt ZSBDb3F1ZWxpbiA8bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb20+DQo+IFNlbnQ6IE1vbmRheSwg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