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 CB389A04AF for ; Thu, 17 Sep 2020 13:35:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 922A01D660; Thu, 17 Sep 2020 13:35:20 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 47F481D64C; Thu, 17 Sep 2020 13:35:17 +0200 (CEST) IronPort-SDR: xqcT/SMQp/vItfFIrNuLl64SYydvMnf6xpjq/wYu3plDVAZYaXCu2liyXjvJtME76kwx1Bfh/i 4MZBjVOxWfOA== X-IronPort-AV: E=McAfee;i="6000,8403,9746"; a="139182951" X-IronPort-AV: E=Sophos;i="5.76,436,1592895600"; d="scan'208";a="139182951" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 04:35:16 -0700 IronPort-SDR: qDhMS4wUU+Fi44HPZ+razAt8UQBwxYdVGPzXdf9eEFrwYjGZYrRfEetPjTSBwBW0lRqNLUfifQ OskeePZW7TIg== X-IronPort-AV: E=Sophos;i="5.76,436,1592895600"; d="scan'208";a="483712784" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.213.206.43]) ([10.213.206.43]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 04:35:14 -0700 To: wangyunjian , dev@dpdk.org, david.marchand@redhat.com Cc: jerry.lilijun@huawei.com, xudingke@huawei.com, stable@dpdk.org References: <1595515713-24640-1-git-send-email-wangyunjian@huawei.com> From: "Burakov, Anatoly" Message-ID: <462bb3d1-7944-6f57-7209-2e1d05491dd9@intel.com> Date: Thu, 17 Sep 2020 12:35:13 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <1595515713-24640-1-git-send-email-wangyunjian@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2] eal/linux: do not create user mem map repeatedly when it exists 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On 23-Jul-20 3:48 PM, wangyunjian wrote: > From: Yunjian Wang > > Currently, we will create new user mem map entry for the same memory > segment, but in fact it has already been added to the user mem maps. > It's not necessary to create it twice. > > To resolve the issue, add support to remove the same entry in the > function compact_user_maps(). > > Fixes: 0cbce3a167f1 ("vfio: skip DMA map failure if already mapped") > Cc: stable@dpdk.org > > Signed-off-by: Yunjian Wang > --- Acked-by: Anatoly Burakov -- Thanks, Anatoly