fixed resource managr bug occurring in mixed SC/DC systems
This commit is contained in:
+16
-14
@@ -1449,6 +1449,22 @@ VXIE *pvxie
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* find out how many DC devices are in the system
|
||||
* and there worst case (blocked address) alignment
|
||||
*/
|
||||
status = vxi_count_dc_devices(
|
||||
pvxie,
|
||||
&nDC,
|
||||
&maxInBlockedDC);
|
||||
if (status) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(nDC < 1){
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* if unanchored force them to all be in one
|
||||
* contiguous block
|
||||
@@ -1456,20 +1472,6 @@ VXIE *pvxie
|
||||
prealloc = FALSE;
|
||||
if(!pvxie->la_mapped){
|
||||
|
||||
/*
|
||||
* find out how many DC devices are in the system
|
||||
* and there worst case (blocked address) alignment
|
||||
*/
|
||||
status = vxi_count_dc_devices(
|
||||
pvxie,
|
||||
&nDC,
|
||||
&maxInBlockedDC);
|
||||
if(status){
|
||||
return;
|
||||
}
|
||||
if(nDC < 1){
|
||||
return;
|
||||
}
|
||||
/*
|
||||
* allocate with worst case (blocked address) alignment
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user