direct-io.hg

changeset 15116:d6309cfd1fdd

[IA64] Fix allocate_rid_range()

Though there is a free ridblock_owner[], allocate_rid_range()
cannot allocate it.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Alex Williamson <alex.williamson@hp.com>
date Fri May 11 13:09:12 2007 -0600 (2007-05-11)
parents 7812598f65be
children 4ca4374eabd5
files xen/arch/ia64/xen/regionreg.c
line diff
     1.1 --- a/xen/arch/ia64/xen/regionreg.c	Fri May 11 13:07:04 2007 -0600
     1.2 +++ b/xen/arch/ia64/xen/regionreg.c	Fri May 11 13:09:12 2007 -0600
     1.3 @@ -157,9 +157,12 @@ int allocate_rid_range(struct domain *d,
     1.4  	for (i = n_rid_blocks; i < MAX_RID_BLOCKS; i += n_rid_blocks) {
     1.5  		if (ridblock_owner[i] == NULL) {
     1.6  			for (j = i; j < i + n_rid_blocks; ++j) {
     1.7 -				if (ridblock_owner[j])
     1.8 +				if (ridblock_owner[j]) {
     1.9 +					++j;
    1.10  					break;
    1.11 +				}
    1.12  			}
    1.13 +			--j;
    1.14  			if (ridblock_owner[j] == NULL)
    1.15  				break;
    1.16  		}