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 <tomasz.zawadzki@intel.com> Change-Id: Ic936c2a8dd1bb6f93b6f6209ea48e3278b19b54e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11054 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
This commit is contained in:
parent
d9d58ba318
commit
26dfb9a9fa
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user