The next patch will create a SPDK thread in vhost_dev_register() and exit the SPDK thread in vhost_dev_unregister(). As a preparation, simplify error paths in vhost_dev_register() by changing some gotos to return, moving free after the out label, and moving insertion after succeeding vhost_register_unix_socket(). Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Id1a2a50b4ba5732f91598a326a08de5c652fd136 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1145 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
rte_vhost_compat.c | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_nvme.c | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |