vhost: remove vsession->ev_ctx
It's no longer used. Change-Id: Iffa385e18ba7a979d7a384f420f546207774dea3 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459161 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
f43a485299
commit
98af6aba4d
@ -1004,7 +1004,6 @@ spdk_vhost_session_send_event(struct vhost_poll_group *pg,
|
||||
ev_ctx.cb_fn = cb_fn;
|
||||
|
||||
vsession->poll_group = pg;
|
||||
vsession->event_ctx = &ev_ctx;
|
||||
spdk_thread_send_msg(pg->thread, spdk_vhost_event_cb, &ev_ctx);
|
||||
pthread_mutex_unlock(&g_spdk_vhost_mutex);
|
||||
|
||||
@ -1018,7 +1017,6 @@ spdk_vhost_session_send_event(struct vhost_poll_group *pg,
|
||||
}
|
||||
|
||||
pthread_mutex_lock(&g_spdk_vhost_mutex);
|
||||
vsession->event_ctx = NULL;
|
||||
return g_dpdk_response;
|
||||
}
|
||||
|
||||
|
@ -156,8 +156,6 @@ struct spdk_vhost_session {
|
||||
struct spdk_vhost_virtqueue virtqueue[SPDK_VHOST_MAX_VQUEUES];
|
||||
|
||||
TAILQ_ENTRY(spdk_vhost_session) tailq;
|
||||
|
||||
struct spdk_vhost_session_fn_ctx *event_ctx;
|
||||
};
|
||||
|
||||
struct spdk_vhost_dev {
|
||||
|
Loading…
Reference in New Issue
Block a user