mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
uniata patch by encoded:
- Make building with QUEUE_STATISTICS possible - Fix the best_c check. As best_c is a ULONG variable, you cannot check for -1 svn path=/trunk/; revision=29287
This commit is contained in:
parent
8eab3a3ddb
commit
3991819297
|
@ -133,9 +133,11 @@ UniataQueueRequest(
|
||||||
new_cost1 = UniataGetCost(LunExt, AtaReq1, AtaReq);
|
new_cost1 = UniataGetCost(LunExt, AtaReq1, AtaReq);
|
||||||
new_cost2 = UniataGetCost(LunExt, AtaReq, AtaReq2);
|
new_cost2 = UniataGetCost(LunExt, AtaReq, AtaReq2);
|
||||||
|
|
||||||
|
#ifdef QUEUE_STATISTICS
|
||||||
if(new_cost1 == REORDER_COST_INTERSECT ||
|
if(new_cost1 == REORDER_COST_INTERSECT ||
|
||||||
new_cost2 == REORDER_COST_INTERSECT)
|
new_cost2 == REORDER_COST_INTERSECT)
|
||||||
chan->IntersectCount++;
|
chan->IntersectCount++;
|
||||||
|
#endif //QUEUE_STATISTICS
|
||||||
|
|
||||||
if(new_cost2 > REORDER_COST_RESELECT)
|
if(new_cost2 > REORDER_COST_RESELECT)
|
||||||
break;
|
break;
|
||||||
|
@ -348,7 +350,7 @@ UniataGetNextChannel(
|
||||||
cost_c = chan->queue_depth * (chan->ChannelSelectWaitCount+1);
|
cost_c = chan->queue_depth * (chan->ChannelSelectWaitCount+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(best_c == -1) {
|
if(best_c == 0xFFFFFFFF) {
|
||||||
KdPrint2((PRINT_PREFIX " empty queues\n"));
|
KdPrint2((PRINT_PREFIX " empty queues\n"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue