Changeset 36133 in vbox
- Timestamp:
- Mar 2, 2011 10:18:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/ISCSI.cpp
r33567 r36133 2219 2219 if (!fFront) 2220 2220 { 2221 /* Link thePDU at the tail of the list. */2221 /* Insert PDU at the tail of the list. */ 2222 2222 if (!pImage->pIScsiPDUTxHead) 2223 2223 pImage->pIScsiPDUTxHead = pIScsiPDUTx; … … 2228 2228 else 2229 2229 { 2230 /* Link PDU to at the frontof the list. */2230 /* Insert PDU at the beginning of the list. */ 2231 2231 pIScsiPDUTx->pNext = pImage->pIScsiPDUTxHead; 2232 2232 pImage->pIScsiPDUTxHead = pIScsiPDUTx; … … 2484 2484 RTSgBufInit(&pIScsiPDUTx->SgBuf, pIScsiPDUTx->aISCSIReq, cnISCSIReq); 2485 2485 2486 /* Link the PDU to the list. */ 2487 iscsiPDUTxAdd(pImage, pIScsiPDUTx, false /* fFront */); 2486 /* 2487 * Link the PDU to the list. 2488 * Insert at the front of the list to send the response as soon as possible 2489 * to avoid frequent reconnects for a slow connection when there are many PDUs 2490 * waiting. 2491 */ 2492 iscsiPDUTxAdd(pImage, pIScsiPDUTx, true /* fFront */); 2488 2493 2489 2494 /* Start transfer of a PDU if there is no one active at the moment. */ … … 3219 3224 RTMemFree(pIScsiPDUTx); 3220 3225 } 3226 3227 /* Clear the tail pointer (safety precaution). */ 3228 pImage->pIScsiPDUTxTail = NULL; 3221 3229 3222 3230 /* Clear the current PDU too. */
Note:
See TracChangeset
for help on using the changeset viewer.