Spdk/lib/vhost
Changpeng Liu 097691fc18 vhost: do rte_vhost_vring_call from spdk context
Currently we will call `rte_vhost_vring_call` in the DPDK
"vhost-events" thread context when starting the device, and
DPDK vhost library already holds all VQ's access lock when
starting device, with new DPDK/dpdk@c573699 commit, it will
cause deadlock to call `rte_vhost_vring_call` in "vhost-events"
context, so here we increase 1 to `used_req_cnt` to make sure
one more `rte_vhost_vring_call` will be executed later in SPDK
thread context.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Change-Id: Iab53941942335744bf25ab6e9b8747bd08b0c698
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14328
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Dong Yi <yidong0635@126.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2022-09-09 15:31:06 +00:00
..
Makefile Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
rte_vhost_user.c vhost: do rte_vhost_vring_call from spdk context 2022-09-09 15:31:06 +00:00
spdk_vhost.map event/vhost: separate vhost subsystem to scsi and blk 2022-05-20 09:20:07 +00:00
vhost_blk.c vhost: move the session_start_done calls to common layer 2022-09-09 15:31:06 +00:00
vhost_internal.h vhost: add start_session 2022-09-02 07:32:54 +00:00
vhost_rpc.c vhost/rpc: return errno from virtio_blk_create_transport 2022-07-11 07:41:22 +00:00
vhost_scsi.c vhost: move the session_start_done calls to common layer 2022-09-09 15:31:06 +00:00
vhost.c Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00