numam-spdk/lib/vhost
Darek Stojaczyk dad4c43a88 vhost: add a single dpdk semaphore
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>
2019-07-01 12:50:57 +00:00
..
rte_vhost rte_vhost: fix compilation against dpdk master 2019-06-12 05:29:02 +00:00
Makefile vhost: install external msg handling hooks to rte_vhost 2019-03-13 14:26:20 +00:00
rte_vhost_compat.c lib/vhost: Fix unaligned pointer value error 2019-06-17 07:18:48 +00:00
vhost_blk.c vhost: operate on poll groups instead of lcores 2019-07-01 12:50:57 +00:00
vhost_internal.h vhost: operate on poll groups instead of lcores 2019-07-01 12:50:57 +00:00
vhost_nvme.c vhost: operate on poll groups instead of lcores 2019-07-01 12:50:57 +00:00
vhost_rpc.c configure: add option not to use the internal rte_vhost copy 2019-03-13 14:26:20 +00:00
vhost_scsi.c vhost: operate on poll groups instead of lcores 2019-07-01 12:50:57 +00:00
vhost.c vhost: add a single dpdk semaphore 2019-07-01 12:50:57 +00:00