From 289c6dea767b2999a69fc1929d7d46583bc72dd2 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Wed, 18 Sep 2002 01:56:13 +0000 Subject: [PATCH] Don't call VOP_LEASE() while holding the accounting mutex. --- sys/kern/kern_acct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 9a54df8658da..a92630ff0165 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -282,10 +282,10 @@ acct_process(td) /* * Write the accounting information to the file. */ - VOP_LEASE(vp, td, acctcred, LEASE_WRITE); uc = crhold(acctcred); vref(vp); mtx_unlock(&acct_mtx); + VOP_LEASE(vp, td, uc, LEASE_WRITE); ret = vn_rdwr(UIO_WRITE, vp, (caddr_t)&acct, sizeof (acct), (off_t)0, UIO_SYSSPACE, IO_APPEND|IO_UNIT, uc, NOCRED, (int *)0, td);