Spdk/lib/vhost
Shuhei Matsumoto 1dc9a7627f lib/scsi: Check pending tasks for the SCSI device only from the specific initiator
Refine the public helper function spdk_scsi_dev_has_pending_tasks to
be able to check tasks only from the specific initiator.

Then use the function in iSCSI target to fix the issue.

Besides add UT code to test the updated spdk_scsi_dev_has_pending_tasks().
Automated multi hosts test is much better but some UT code will be of any
help to mitigate the risk of degradation.

Fixes #985

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I50afb940de7174360c8a30479450850002a3e525
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471337
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2019-10-18 17:30:13 +00:00
..
Makefile make: add dependencies for the rte_vhost build. 2019-09-09 22:15:24 +00:00
rte_vhost_compat.c vhost: remove spdk_ prefix from private functions 2019-09-09 01:39:41 +00:00
vhost_blk.c rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
vhost_internal.h vhost: assign poll group in vhost_session_start_done 2019-10-09 02:28:17 +00:00
vhost_nvme.c vhost/nvme: fix error handling of session start 2019-10-09 02:28:17 +00:00
vhost_rpc.c vhost_rpc: Fix function typo error. 2019-10-10 16:52:44 +00:00
vhost_scsi.c lib/scsi: Check pending tasks for the SCSI device only from the specific initiator 2019-10-18 17:30:13 +00:00
vhost.c vhost: factor out semaphore usage 2019-10-09 02:28:17 +00:00