]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[iscsi] Avoid duplicate calls to iscsi_tx_done()
authorMichael Brown <mcb30@ipxe.org>
Wed, 29 Jun 2011 13:49:18 +0000 (14:49 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 29 Jun 2011 13:52:30 +0000 (14:52 +0100)
commit1b8984eb5da23e58f275478474dd6ab8d7a785ea
treefb90e94dfb4511a62937793177ee53cc46573548
parent95d82bb2a23bf645d995aed0d643cc34d5d8a3af
[iscsi] Avoid duplicate calls to iscsi_tx_done()

The iSCSI TX process can now be woken up by the TCP socket via
xfer_window_changed(), so it is no longer valid to assume that
iscsi_tx_step() can be called in state ISCSI_TX_IDLE only immediately
after completing a transmission.

Fix by calling iscsi_tx_done() only upon a transition into state
ISCSI_TX_IDLE.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tcp/iscsi.c