from Christian Ehrhardt:

* uvm_loanzero may call uvm_analloc which will return with anon->an_lock
  locked. This lock is never dropped by uvm_loanzero and AFAICS the caller
  doesn't drop it either.
This commit is contained in:
yamt 2006-04-18 09:56:16 +00:00
parent 51ab7131e8
commit c8d2679980
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_loan.c,v 1.58 2006/01/31 14:11:25 yamt Exp $ */
/* $NetBSD: uvm_loan.c,v 1.59 2006/04/18 09:56:16 yamt Exp $ */
/*
*
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.58 2006/01/31 14:11:25 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: uvm_loan.c,v 1.59 2006/04/18 09:56:16 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -922,6 +922,7 @@ again:
pg->loan_count++;
uvm_pageactivate(pg);
uvm_unlock_pageq();
simple_unlock(&anon->an_lock);
simple_unlock(&uvm_loanzero_object.vmobjlock);
**output = anon;
(*output)++;