Commit d5571964 authored by Changpeng Liu's avatar Changpeng Liu Committed by Jim Harris
Browse files

vhost: move spdk_vhost_init/fini to vhost library



Althrough the two functions are empty now, but they are not
vhost_scsi specific.

Change-Id: I331a455374f7dd92fd76cab255a43072baceb0dd
Signed-off-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/389477


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent a2b10353
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1166,4 +1166,15 @@ spdk_vhost_unlock(void)
	pthread_mutex_unlock(&g_spdk_vhost_mutex);
}

int
spdk_vhost_init(void)
{
	return 0;
}

void
spdk_vhost_fini(void)
{
}

SPDK_LOG_REGISTER_TRACE_FLAG("vhost_ring", SPDK_TRACE_VHOST_RING)
+0 −11
Original line number Diff line number Diff line
@@ -1127,17 +1127,6 @@ err:
	return -1;
}

int
spdk_vhost_init(void)
{
	return 0;
}

void
spdk_vhost_fini(void)
{
}

static void
spdk_vhost_scsi_config_json(struct spdk_vhost_dev *vdev, struct spdk_json_write_ctx *w)
{