VirtualBox

Ignore:
Timestamp:
Sep 7, 2010 11:35:31 AM (14 years ago)
Author:
vboxsync
Message:

iSCSI: Provide the correct hint to the select method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp

    r32225 r32278  
    2121*******************************************************************************/
    2222#define LOG_GROUP LOG_GROUP_VD_ISCSI
     23#define LOG_ENABLED
    2324#include <VBox/VBoxHDD-Plugin.h>
    2425#define VBOX_VDICORE_VD /* Signal that the header is included from here. */
     
    17451746    uint32_t ExpDataSN = 0;
    17461747    bool final = false;
     1748
    17471749
    17481750    LogFlowFunc(("entering, CmdSN=%d\n", pImage->CmdSN));
     
    32973299
    32983300        if (pImage->cCmdsWaiting)
     3301        {
     3302            pImage->fPollEvents &= ~VD_INTERFACETCPNET_HINT_INTERRUPT;
    32993303            msWait = pImage->uReadTimeout;
     3304        }
    33003305        else
     3306        {
     3307            pImage->fPollEvents |= VD_INTERFACETCPNET_HINT_INTERRUPT;
    33013308            msWait = RT_INDEFINITE_WAIT;
     3309        }
    33023310
    33033311        LogFlow(("Waiting for events fPollEvents=%#x\n", pImage->fPollEvents));
     
    33313339            }
    33323340        }
    3333         else if (rc == VERR_TIMEOUT)
     3341#if 0
     3342        else if ((rc == VERR_TIMEOUT) && pImage->cCmdsWaiting)
    33343343        {
    33353344            /*
     
    33383347             * We assume the connection is broken and try to reconnect.
    33393348             */
    3340             LogFlow(("Timed out while waiting for an asnwer from the target, reconnecting\n"));
     3349            LogFlow(("Timed out while waiting for an answer from the target, reconnecting\n"));
    33413350            iscsiReattach(pImage);
    33423351        }
    3343         else if (RT_SUCCESS(rc))
     3352#endif
     3353        else if (RT_SUCCESS(rc) || rc == VERR_TIMEOUT)
    33443354        {
    33453355            Assert(pImage->state == ISCSISTATE_NORMAL);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette