Move memtable register out of start_device, into post_handler for vhost-msg SET_MEMTABLE; And unregister memtable in destroy_connection instead of destroy_device If memtable info not changed in the msg, then we don't need to register it multi times. Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com> Change-Id: I0f8c76c1ee43b6f981d703beeba92da5dac4dbd6 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14263 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> |
||
---|---|---|
.. | ||
Makefile | ||
rte_vhost_user.c | ||
spdk_vhost.map | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |