Spdk/lib/vhost
Liu Xiaodong 7a3246bfb2 vhost: fetch and check avail_idx from memory
Since there may be race condition, num_events gotten
from kickfd is not always right to reflect the number
of requests in virtqueue. So remove this check.
Instead, avail_idx in memory reflects the real situation
whether there is unprocessed requests in queue.

Change-Id: I4e59242cf3101ece912777533411bc4dcdc81c9d
Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5787
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-01-08 15:14:17 +00:00
..
Makefile vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00
rte_vhost_compat.c vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00
spdk_vhost.map lib/vhost: Remove and inline spdk_vhost_blk_get_dev 2020-06-08 09:28:27 +00:00
vhost_blk.c vhost-blk: process VIRTIO_BLK_WRITE_ZEROES_FLAG_UNMAP correctly 2020-12-28 13:17:00 +00:00
vhost_internal.h vhost-blk: record inflight descs of packed ring 2020-12-16 08:56:12 +00:00
vhost_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
vhost_scsi.c vhost-scsi: fix hang when removing target 2020-11-19 09:23:39 +00:00
vhost.c vhost: fetch and check avail_idx from memory 2021-01-08 15:14:17 +00:00