This should be a mutex_enter() instead of a mutex_exit().

Fixes:
Mutex error: mutex_vector_exit: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread
...
mutex_abort(c0aba23c,c07bf8b0,c09c9164,bfbfee34,10) at netbsd:mutex_abort+0x36
mutex_vector_exit(c0aba23c,10,c0aba23c,ca8efc6c,ca8f8540) at netbsd:mutex_vector_exit+0xe2
compat_20_sys_getfsstat(ca8f8540,cb243c48,cb243c68,805eb24,805e000) at netbsd:compat_20_sys_getfsstat+0x1bf
...
This commit is contained in:
oster 2007-11-01 03:49:52 +00:00
parent 2d1f4c35c9
commit 77002eb972
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_syscalls_20.c,v 1.18 2007/10/10 20:42:21 ad Exp $ */
/* $NetBSD: vfs_syscalls_20.c,v 1.19 2007/11/01 03:49:52 oster Exp $ */
/*
* Copyright (c) 1989, 1993
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_20.c,v 1.18 2007/10/10 20:42:21 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_20.c,v 1.19 2007/11/01 03:49:52 oster Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_43.h"
@ -246,7 +246,7 @@ compat_20_sys_getfsstat(l, v, retval)
root |= strcmp(sbuf->f_mntonname, "/") == 0;
}
count++;
mutex_exit(&mountlist_lock);
mutex_enter(&mountlist_lock);
nmp = CIRCLEQ_NEXT(mp, mnt_list);
vfs_unbusy(mp);
}