mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +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
1 changed files with 3 additions and 1 deletions
|
@ -133,9 +133,11 @@ UniataQueueRequest(
|
|||
new_cost1 = UniataGetCost(LunExt, AtaReq1, AtaReq);
|
||||
new_cost2 = UniataGetCost(LunExt, AtaReq, AtaReq2);
|
||||
|
||||
#ifdef QUEUE_STATISTICS
|
||||
if(new_cost1 == REORDER_COST_INTERSECT ||
|
||||
new_cost2 == REORDER_COST_INTERSECT)
|
||||
chan->IntersectCount++;
|
||||
#endif //QUEUE_STATISTICS
|
||||
|
||||
if(new_cost2 > REORDER_COST_RESELECT)
|
||||
break;
|
||||
|
@ -348,7 +350,7 @@ UniataGetNextChannel(
|
|||
cost_c = chan->queue_depth * (chan->ChannelSelectWaitCount+1);
|
||||
}
|
||||
}
|
||||
if(best_c == -1) {
|
||||
if(best_c == 0xFFFFFFFF) {
|
||||
KdPrint2((PRINT_PREFIX " empty queues\n"));
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue