sahlberg/libiscsi — pull request #51 by plieven (2012-12-03 10:07:33+00:00)
Title: SOCKET queue cmd PDUs directly in waitpdu queue

A storage might sent an R2T response for a WRITE command while
we still sending out the WRITE command PDU. This is especially
the case when the command PDU carries immediata data.

Without this patch the R2T response will get lost as
the cmdpdu for the R2T cannot be found in iscsi_process_pdu()
leading to a deadlock.

Signed-off-by: Peter Lieven