Spdk/lib/vhost
Shuhei Matsumoto 0a992c64c7 lib/vhost: Fix passing wrong data to callback to vhost_dev_foreach_session()
Not context passed to vhost_dev_for_each_session() but struct
spdk_vhost_session had been passed to the callback to
vhost_dev_for_each_session() by mistake.

This patch fixes the bug. Besides, rename ctx by ev_ctx to avoid
potential future degradation.

Fixes issue #1306.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I8ceed4e1bb7c0c27fb75516527e3bad91a054b02
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1432
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
2020-03-25 07:53:58 +00:00
..
Makefile make: rev SO versions individually for libraries. 2020-03-18 08:02:30 +00:00
rte_vhost_compat.c memory.h: move to public headers 2020-03-19 08:50:45 +00:00
vhost_blk.c lib/vhost: Replace poll group per session by thread per controller 2020-03-10 09:12:12 +00:00
vhost_internal.h lib/vhost: Replace poll group per session by thread per controller 2020-03-10 09:12:12 +00:00
vhost_nvme.c nvme: Move prp map code from vhost to nvme driver 2020-03-10 09:12:29 +00:00
vhost_rpc.c lib/vhost: Replace poll group per session by thread per controller 2020-03-10 09:12:12 +00:00
vhost_scsi.c lib/vhost: Replace poll group per session by thread per controller 2020-03-10 09:12:12 +00:00
vhost.c lib/vhost: Fix passing wrong data to callback to vhost_dev_foreach_session() 2020-03-25 07:53:58 +00:00