Spdk/lib/vhost
Darek Stojaczyk 6e77b0b68d vhost: make poll group refcount per-session
Change the way we increase poll group reference counts
for round-robin scheduling.

So far we used to increase them whenever someone called
vhost_get_poll_group() and this worked fine for Vhost-Block
which picks a new poll group for each session. Vhost-SCSI,
however, picks only one poll group for all sessions on
a vhost device. This means that some threads will have
multiple Vhost-SCSI pollers but will still appear to the
vhost scheduler as if they had only one.

To fix it, increase poll group refcnt only when sessions
are really being started - in vhost_session_start_done().

Change-Id: I60f0d2101239e5a91138a5afd30c51dc1ccf7c2e
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466733
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Vitaliy Mysak <vitaliy.mysak@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-09-09 01:39:41 +00:00
..
rte_vhost vhost: remove unnecessary membarrier on I/O completion 2019-08-23 22:34: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 vhost: remove spdk_ prefix from private functions 2019-09-09 01:39:41 +00:00
vhost_blk.c vhost: make poll group refcount per-session 2019-09-09 01:39:41 +00:00
vhost_internal.h vhost: add a separate cpl cb to foreach_session() 2019-09-09 01:39:41 +00:00
vhost_nvme.c vhost: make poll group refcount per-session 2019-09-09 01:39:41 +00:00
vhost_rpc.c vhost: remove spdk_ prefix from private functions 2019-09-09 01:39:41 +00:00
vhost_scsi.c vhost: make poll group refcount per-session 2019-09-09 01:39:41 +00:00
vhost.c vhost: make poll group refcount per-session 2019-09-09 01:39:41 +00:00