Loading
vhost: stop device should wait the async start session_start
The start_device() will call the vhost_user_session_start asynchronously. At the same time, if the GET_VRING_BASE cmd is received, then the stop_device is called immediately. It will invalidate the vring, and when the vhost_user_session_start is running, it will encounter null pointer error. Change-Id: Id933231f9a3b13384491a300f250fbc6f62e2e70 Signed-off-by:Li Feng <fengli@smartx.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19588 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Jim Harris <jim.harris@gmail.com> Community-CI: Mellanox Build Bot