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/kern/vfs_sync.c | |
parent | 4d02fc3a72931854a01b3cd3a18b3e91700a4457 (diff) |
move vfs_busy() to rwlocks and properly hide the locking api from vfs
ok tedu, pedro
Diffstat (limited to 'sys/kern/vfs_sync.c')
-rw-r--r-- | sys/kern/vfs_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_sync.c b/sys/kern/vfs_sync.c index 6068ff5473e..8694baa5c39 100644 --- a/sys/kern/vfs_sync.c +++ b/sys/kern/vfs_sync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_sync.c,v 1.39 2006/04/30 14:20:07 sturm Exp $ */ +/* $OpenBSD: vfs_sync.c,v 1.40 2006/06/14 20:01:50 sturm Exp $ */ /* * Portions of this code are: @@ -353,7 +353,7 @@ sync_fsync(void *v) * Walk the list of vnodes pushing all that are dirty and * not already on the sync list. */ - if (vfs_busy(mp, LK_NOWAIT) == 0) { + if (vfs_busy(mp, VB_READ|VB_UMIGNORE) == 0) { asyncflag = mp->mnt_flag & MNT_ASYNC; mp->mnt_flag &= ~MNT_ASYNC; VFS_SYNC(mp, MNT_LAZY, ap->a_cred, ap->a_p); |