Spdk/lib/vhost
Darek Stojaczyk d4f7bf9cdd vhost: remove redundant vdev == NULL checks in foreach_session()
Historically the callbacks from vhost_dev_foreach_session()
could be called with vdev argument == NULL, which would
mean that device was removed after enqueuing the event
and before consuming it. Now we keep track of pending
asynchronous operations on each vhost device and don't
allow removing it if there are any unconsumed events,
so the the vdev == NULL checks are redundant. Remove them.

Change-Id: I7aa3785080d20ed06e008c081d3f37a949228f5a
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466729
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Vitaliy Mysak <vitaliy.mysak@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: remove redundant vdev == NULL checks in foreach_session() 2019-09-09 01:39:41 +00:00
vhost_internal.h vhost: remove redundant vdev == NULL checks in foreach_session() 2019-09-09 01:39:41 +00:00
vhost_nvme.c vhost: remove spdk_ prefix from private functions 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: remove spdk_ prefix from private functions 2019-09-09 01:39:41 +00:00
vhost.c vhost: remove redundant vdev == NULL checks in foreach_session() 2019-09-09 01:39:41 +00:00