diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2007-12-13 18:22:37 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2007-12-13 18:22:37 +0000 |
commit | 8b1f655711238b3be5f4adbb79082fd84dfe7da8 (patch) | |
tree | 7b29f44462245a11d1bda186c83d9b42e12f47ca | |
parent | ee724c4cb5dbfe46e45bc8f756ddb15061fd34a9 (diff) |
replace calls to ltsleep with tsleep
remove PNORELOCK flag, as PNORELOCK is used for msleep
ok art@ thib@
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index d2b27e5225a..05db45dfeb3 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.160 2007/11/16 13:47:27 deraadt Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.161 2007/12/13 18:22:36 blambert Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -600,7 +600,7 @@ vget(struct vnode *vp, int flags, struct proc *p) } vp->v_flag |= VXWANT; - ltsleep(vp, PINOD | PNORELOCK, "vget", 0, NULL); + tsleep(vp, PINOD, "vget", 0); return (ENOENT); } @@ -1013,7 +1013,7 @@ vgonel(struct vnode *vp, struct proc *p) */ if (vp->v_flag & VXLOCK) { vp->v_flag |= VXWANT; - ltsleep(vp, PINOD | PNORELOCK, "vgone", 0, NULL); + tsleep(vp, PINOD, "vgone", 0); return; } |