Upon Chuck Cranor request, revert rev. 1.26. There is indeed a bug in way
locking is done, but this fix is not the right way to fix it.
This commit is contained in:
parent
3aabea5c70
commit
5bd42953f7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_loan.c,v 1.26 2001/04/08 16:51:51 jdolecek Exp $ */
|
||||
/* $NetBSD: uvm_loan.c,v 1.27 2001/04/09 06:21:03 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -268,10 +268,6 @@ uvm_loan(map, start, len, result, flags)
|
|||
error = EINVAL;
|
||||
goto fail;
|
||||
}
|
||||
if (rv == 0) {
|
||||
uvmfault_unlockmaps(&ufi, FALSE);
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* done! advance pointers and unlock.
|
||||
|
@ -279,6 +275,7 @@ uvm_loan(map, start, len, result, flags)
|
|||
rv <<= PAGE_SHIFT;
|
||||
len -= rv;
|
||||
start += rv;
|
||||
uvmfault_unlockmaps(&ufi, FALSE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue