dad4c43a88
The semaphore was a part of struct spdk_vhost_session_fn_ctx so far, but since there's only one pthread waiting on that semaphore and hence only one event using it, we could just use a single global sem_t. Same thing with response code for those callbacks - there's only one needed. Going a step further, the function complete_session_event() was removed - it would only operate on global variables now, and its signature wouldn't make much sense after this refactor, so it's been inlined. This serves as cleanup. Change-Id: I63ef41d7e1564fff5e785de101d887bc1014aad9 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459160 Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> |
||
---|---|---|
.. | ||
rte_vhost | ||
Makefile | ||
rte_vhost_compat.c | ||
vhost_blk.c | ||
vhost_internal.h | ||
vhost_nvme.c | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost.c |