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/nfs | |
parent | 4d02fc3a72931854a01b3cd3a18b3e91700a4457 (diff) |
move vfs_busy() to rwlocks and properly hide the locking api from vfs
ok tedu, pedro
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index 9ac032a6323..e6156abe717 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.46 2006/04/30 14:20:07 sturm Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.47 2006/06/14 20:01:50 sturm Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -177,7 +177,7 @@ nfs_clientd(struct nfsmount *nmp, struct ucred *cred, struct nfsd_cargs *ncd, error = tsleep((caddr_t)&nmp->nm_authstr, PSOCK | PCATCH, "nqnfstimr", hz / 3); if (error == EINTR || error == ERESTART) { - if (vfs_busy(nmp->nm_mountp, LK_EXCLUSIVE) == 0) + if (vfs_busy(nmp->nm_mountp, VB_WRITE|VB_UMWAIT) == 0) dounmount(nmp->nm_mountp, MNT_FORCE, p, NULL); } } |