diff options
author | Nikolay Sturm <sturm@cvs.openbsd.org> | 2006-06-14 20:01:51 +0000 |
---|---|---|
committer | Nikolay Sturm <sturm@cvs.openbsd.org> | 2006-06-14 20:01:51 +0000 |
commit | 0cd791c913e2bef4d1748b8fd232a4b916f20a0d (patch) | |
tree | 64cc611b398acc59aac198816552ca583e041e07 /sys/compat/netbsd | |
parent | 4d02fc3a72931854a01b3cd3a18b3e91700a4457 (diff) |
move vfs_busy() to rwlocks and properly hide the locking api from vfs
ok tedu, pedro
Diffstat (limited to 'sys/compat/netbsd')
-rw-r--r-- | sys/compat/netbsd/netbsd_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/netbsd/netbsd_file.c b/sys/compat/netbsd/netbsd_file.c index f02653634b1..d7e3b0bd20d 100644 --- a/sys/compat/netbsd/netbsd_file.c +++ b/sys/compat/netbsd/netbsd_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_file.c,v 1.9 2006/04/30 14:20:07 sturm Exp $ */ +/* $OpenBSD: netbsd_file.c,v 1.10 2006/06/14 20:01:50 sturm Exp $ */ /* $NetBSD: freebsd_file.c,v 1.3 1996/05/03 17:03:09 christos Exp $ */ /* @@ -634,7 +634,7 @@ netbsd_sys_getfsstat(p, v, retval) for (mp = CIRCLEQ_FIRST(&mountlist); mp != CIRCLEQ_END(&mountlist); mp = nmp) { - if (vfs_busy(mp, LK_NOWAIT)) { + if (vfs_busy(mp, VB_READ|VB_UMIGNORE)) { nmp = CIRCLEQ_NEXT(mp, mnt_list); continue; } |