diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2006-08-31 18:09:30 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-02 14:37:25 -0400 |
commit | d5390f5f788f01788e9dfd41ad516a2908901610 (patch) | |
tree | e8438950bb9a5e601639d9c0806eae329730b44a /drivers/scsi | |
parent | 753e7d3866748799e4a8769cd27ea7202654211b (diff) |
[SCSI] iscsi_tcp: update header size during relogin
When we relogin to a target, we have not yet negotiated digests
so we must reset the hdr_size var.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/iscsi_tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 541912a5b886..5d292d0b65ec 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -1827,9 +1827,11 @@ static void | |||
1827 | iscsi_tcp_conn_stop(struct iscsi_cls_conn *cls_conn, int flag) | 1827 | iscsi_tcp_conn_stop(struct iscsi_cls_conn *cls_conn, int flag) |
1828 | { | 1828 | { |
1829 | struct iscsi_conn *conn = cls_conn->dd_data; | 1829 | struct iscsi_conn *conn = cls_conn->dd_data; |
1830 | struct iscsi_tcp_conn *tcp_conn = conn->dd_data; | ||
1830 | 1831 | ||
1831 | iscsi_conn_stop(cls_conn, flag); | 1832 | iscsi_conn_stop(cls_conn, flag); |
1832 | iscsi_tcp_release_conn(conn); | 1833 | iscsi_tcp_release_conn(conn); |
1834 | tcp_conn->hdr_size = sizeof(struct iscsi_hdr); | ||
1833 | } | 1835 | } |
1834 | 1836 | ||
1835 | static int | 1837 | static int |