As described in RFC3720, task management request will act on all the commands from the same session having a CmdSN lower than the task management CmdSN. Current implementation clears all R2T tasks without checking CmdSN. This patch changes the implementation to clear only R2T tasks whose CmdSN is smaller than the task management request. Additionally this patch adds to UT code to verify the change works as expected. Change-Id: I0b368cb13741bc05259924d27793438e9250b951 Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/434761 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
iscsi_ut.c | ||
Makefile |