Spdk/test/unit/lib/iscsi/conn.c
Shuhei Matsumoto a115177b98 iscsi: Clear only R2T tasks prior to task management request
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>
2018-12-06 22:35:40 +00:00
..
.gitignore iscsi/ut: Test for read task splitting 2018-01-11 18:37:34 -05:00
conn_ut.c iscsi: Clear only R2T tasks prior to task management request 2018-12-06 22:35:40 +00:00
Makefile test: use spdk.unittest.mk for iscsi unit tests 2018-02-14 11:07:05 -05:00