From 26dfb9a9fac03f16db7cbf18f2b2a8a684e87748 Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Wed, 12 Jan 2022 14:02:28 +0100 Subject: [PATCH] lib/vhost: remove zeroing g_vhost_core_mask on vhost_fini There is no need to zero out the g_vhost_core_mask on vhost_fini. Removing it will help later in the series when splitting vhost fini between vhost.c and virtio abstraction. g_vhost_core_mask will only be used in vhost.c and any cpu_mask shall be passed to virtio abstraction after going through vhost_parse_core_mask. There is no need to make the g_vhost_core_mask accessible for virtio transports. Signed-off-by: Tomasz Zawadzki Change-Id: Ic936c2a8dd1bb6f93b6f6209ea48e3278b19b54e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11054 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris Reviewed-by: Konrad Sztyber --- lib/vhost/vhost.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/vhost/vhost.c b/lib/vhost/vhost.c index 892ecca4f..400c26866 100644 --- a/lib/vhost/vhost.c +++ b/lib/vhost/vhost.c @@ -1565,8 +1565,6 @@ vhost_fini(void *arg1) } spdk_vhost_unlock(); - spdk_cpuset_zero(&g_vhost_core_mask); - /* All devices are removed now. */ sem_destroy(&g_dpdk_sem);