Refine helper functions spdk_scsi_lun_has_pending_mgmt_tasks() and spdk_scsi_lun_has_pending_tasks() to be able to check tasks only from the specific initiator. SCSI port is used by passing the pointer and so simple pointer comparison is appropriate in the functions. Add UT code to test the updated functions. The next patch will change spdk_scsi_dev_has_pending_tasks() to get not only SCSI device but also initiator port and make iSCSI target use the function to fix the issue. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I89c33e05bc6ab21baa6cbebf60950039a3dcecd0 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471336 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> |
||
---|---|---|
.. | ||
.gitignore | ||
lun_ut.c | ||
Makefile |