From 7cdcc6e43a432cc159c7c1932bec1315dc499ada Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 21 Apr 2010 22:28:38 +0000 Subject: [PATCH] Merge with IET r277: Fix TTT for final PDU. For Text Response it must be ISCSI_RESERVED_TAG. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1646 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/usr/iscsid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iscsi-scst/usr/iscsid.c b/iscsi-scst/usr/iscsid.c index c7c1907e4..6f49b684b 100644 --- a/iscsi-scst/usr/iscsid.c +++ b/iscsi-scst/usr/iscsid.c @@ -961,8 +961,10 @@ static void cmnd_exec_text(struct connection *conn) } if (list_empty(&conn->rsp_buf_list) || - list_length_is_one(&conn->rsp_buf_list)) + list_length_is_one(&conn->rsp_buf_list)) { rsp->flags = ISCSI_FLG_FINAL; + conn->ttt = ISCSI_RESERVED_TAG; + } rsp->ttt = conn->ttt;