RECONNCT fix broken reconnect for iov out vectors
We where modifying out_offset and out_len in iscsi_write_to_socket(). If the packet that was being sent before reconnect was a write command the was a significant change that out_offset and out_len where already touched. When requeing the packet after reconnect we where sending garbage! Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -308,6 +308,7 @@ try_again:
|
||||
iscsi->statsn++;
|
||||
|
||||
pdu->written = 0;
|
||||
pdu->out_written = 0;
|
||||
iscsi_add_to_outqueue(iscsi, pdu);
|
||||
}
|
||||
|
||||
@@ -341,6 +342,7 @@ try_again:
|
||||
iscsi->statsn++;
|
||||
|
||||
pdu->written = 0;
|
||||
pdu->out_written = 0;
|
||||
iscsi_add_to_outqueue(iscsi, pdu);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user