Currently vhost_dev_foreach_session() accepts a single callback function for both iterating through all active sessions and for signaling the end of iteration (called last time with vsession param == NULL). Now that the final signal has completely different semantics and is called on a specific thread, it makes sense to put in a separate function. In this patch we prepare separate functions for the final call, but still call them in the original callback. In a separate patch we'll start passing both functions directly to foreach_session(). Change-Id: I9f4338d9696f7bd15ca2d6655c6a3851569aff75 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466731 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@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 |