]> git.proxmox.com Git - qemu.git/commit
iscsi: add support for iSCSI NOPs [v2]
authorPeter Lieven <pl@kamp.de>
Thu, 6 Dec 2012 09:46:47 +0000 (10:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Jan 2013 14:07:03 +0000 (15:07 +0100)
commit5b5d34ec9882b29b757f6808693308e52a8e8ba7
tree205ceec23470140440d8dee9a7456f31b63b3b97
parent4cc841b57c1dc91d71bafc25b53ffab4eff7959b
iscsi: add support for iSCSI NOPs [v2]

This patch will send NOP-Out PDUs every 5 seconds to the iSCSI target.
If a consecutive number of NOP-In replies fail a reconnect is initiated.
iSCSI NOPs help to ensure that the connection to the target is still operational.
This should not, but in reality may be the case even if the TCP connection is still
alive if there are bugs in either the target or the initiator implementation.

v2:
 - track the NOPs inside libiscsi so libiscsi can reset the counter
   in case it initiates a reconnect.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c