1dc9a7627f
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> |
||
---|---|---|
.. | ||
dev.c | ||
lun.c | ||
Makefile | ||
port.c | ||
scsi_bdev.c | ||
scsi_internal.h | ||
scsi_pr.c | ||
scsi_rpc.c | ||
scsi.c | ||
task.c |