From: Yuanhan Liu Subject: Re: [PATCH] examples/vhost: fix corrupted vdev tailq list Date: Mon, 13 Jun 2016 17:53:16 +0800 Message-ID: <20160613095316.GQ10038@yliu-dev.sh.intel.com> References: <1465270376-16560-1-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: huawei.xie@intel.com To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 510E3FE5 for ; Mon, 13 Jun 2016 11:51:19 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1465270376-16560-1-git-send-email-yuanhan.liu@linux.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Jun 07, 2016 at 11:32:56AM +0800, Yuanhan Liu wrote: > There are two tailq lists, one for logging all vhost devices, another > one for logging vhost devices distributed on a specific core. However, > there is just one tailq entry, named "next", to chain the two list, > which is wrong and could result to a corrupted tailq list, that the > tailq list might always be non-empty: the entry is still there even > after you have invoked TAILQ_REMOVE several times. > > Fix it by introducing two tailq entries, one for each list. > > Fixes: 45657a5c6861 ("examples/vhost: use tailq to link vhost devices") > > Signed-off-by: Yuanhan Liu Applied to dpdk-next-virtio. --yliu