summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-06-08 18:36:46 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-06-08 18:36:46 +0000
commitce4c7543bf89856e99d3f3f905d5d752149d4595 (patch)
treebdbc4d0d489abc877718307b0f22c877959e592c /sys
parent6bcc262bdbcb6ccebd45350428cdfce8e13fa8bd (diff)
Use ltsleep in vfs_busy.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_subr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index c7c23c02212..0b7a3ac78e1 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_subr.c,v 1.84 2002/05/16 00:03:05 art Exp $ */
+/* $OpenBSD: vfs_subr.c,v 1.85 2002/06/08 18:36:45 art Exp $ */
/* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */
/*
@@ -165,17 +165,13 @@ vfs_busy(mp, flags, interlkp, p)
if (flags & LK_NOWAIT)
return (ENOENT);
mp->mnt_flag |= MNT_MWAIT;
- if (interlkp)
- simple_unlock(interlkp);
/*
* Since all busy locks are shared except the exclusive
* lock granted when unmounting, the only place that a
* wakeup needs to be done is at the release of the
* exclusive lock at the end of dounmount.
*/
- sleep((caddr_t)mp, PVFS);
- if (interlkp)
- simple_lock(interlkp);
+ ltsleep(mp, PVFS, "vfs_bsy", 0, interlkp);
return (ENOENT);
}
lkflags = LK_SHARED;