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:
Colin Finck 2007-09-28 22:00:52 +00:00
parent 8eab3a3ddb
commit 3991819297

View file

@ -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;
}