In uao_get(), drop object lock only after dropswap to avoid KASSERT panic.
Should fix tmpfs problem reported by riz on current-users. yamt ok.
This commit is contained in:
parent
2818ab2bd1
commit
4d42eff4e1
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_aobj.c,v 1.92 2007/07/24 19:59:35 ad Exp $ */
|
||||
/* $NetBSD: uvm_aobj.c,v 1.93 2007/08/05 10:19:23 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
|
||||
@ -43,7 +43,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.92 2007/07/24 19:59:35 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.93 2007/08/05 10:19:23 pooka Exp $");
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
@ -400,11 +400,13 @@ uao_free(struct uvm_aobj *aobj)
|
||||
{
|
||||
int swpgonlydelta = 0;
|
||||
|
||||
#if defined(VMSWAP)
|
||||
uao_dropswap_range1(aobj, 0, 0);
|
||||
#endif /* defined(VMSWAP) */
|
||||
|
||||
simple_unlock(&aobj->u_obj.vmobjlock);
|
||||
|
||||
#if defined(VMSWAP)
|
||||
uao_dropswap_range1(aobj, 0, 0);
|
||||
|
||||
if (UAO_USES_SWHASH(aobj)) {
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user