mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
IET r218: set the Final-bit on empty text response PDUs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1639 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -21,4 +21,4 @@
|
||||
#define ISCSI_VERSION_STRING_SUFFIX
|
||||
#endif
|
||||
|
||||
#define ISCSI_VERSION_STRING "2.0.0/0.4.17r214" ISCSI_VERSION_STRING_SUFFIX
|
||||
#define ISCSI_VERSION_STRING "2.0.0-rc1" ISCSI_VERSION_STRING_SUFFIX
|
||||
|
||||
@@ -953,8 +953,10 @@ static void cmnd_exec_text(struct connection *conn)
|
||||
return;
|
||||
}
|
||||
|
||||
if (list_length_is_one(&conn->rsp_buf_list))
|
||||
if (list_empty(&conn->rsp_buf_list) ||
|
||||
list_length_is_one(&conn->rsp_buf_list))
|
||||
rsp->flags = ISCSI_FLG_FINAL;
|
||||
|
||||
rsp->ttt = conn->ttt;
|
||||
|
||||
rsp->stat_sn = cpu_to_be32(conn->stat_sn++);
|
||||
|
||||
Reference in New Issue
Block a user