At this point in iscsi_write_to_socket() pdu->written can only be equal to total. Signed-off-by: Peter Lieven <pl@kamp.de>