Browse Source

We can't assert that the RX engine is idle in iscsi_done(), because it

may be called during the RX data processor, before the RX engine
transitions back to idle.  It doesn't really matter if the RX engine
isn't idle when iscsi_done() is called, because it will just pick up
where it left off on the next call.  (The same is not true for the TX
engine, so keep the TX engine assertion.)
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
aaca21a2b6
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      src/net/tcp/iscsi.c

+ 0
- 2
src/net/tcp/iscsi.c View File

116
 static void iscsi_done ( struct iscsi_session *iscsi, int rc ) {
116
 static void iscsi_done ( struct iscsi_session *iscsi, int rc ) {
117
 
117
 
118
 	assert ( iscsi->tx_state == ISCSI_TX_IDLE );
118
 	assert ( iscsi->tx_state == ISCSI_TX_IDLE );
119
-	assert ( iscsi->rx_state == ISCSI_RX_BHS );
120
-	assert ( iscsi->rx_offset == 0 );
121
 
119
 
122
 	/* Clear current SCSI command */
120
 	/* Clear current SCSI command */
123
 	iscsi->command = NULL;
121
 	iscsi->command = NULL;

Loading…
Cancel
Save