diff options
author | dg <dg@FreeBSD.org> | 1994-10-06 21:07:04 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-10-06 21:07:04 +0000 |
commit | 2add6128e22fca2b5350fbda48427077f03c16bb (patch) | |
tree | f7a29b84bd4828e9297f7385d79ab2ce4fa9c50c /sys/fs/unionfs/union_vnops.c | |
parent | dbd2b6665c27bd5ee1a1b627060085c53d581b06 (diff) | |
download | FreeBSD-src-2add6128e22fca2b5350fbda48427077f03c16bb.zip FreeBSD-src-2add6128e22fca2b5350fbda48427077f03c16bb.tar.gz |
Use tsleep() rather than sleep so that 'ps' is more informative about
the wait.
Diffstat (limited to 'sys/fs/unionfs/union_vnops.c')
-rw-r--r-- | sys/fs/unionfs/union_vnops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index 9aa19f1..b47ba48 100644 --- a/sys/fs/unionfs/union_vnops.c +++ b/sys/fs/unionfs/union_vnops.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * @(#)union_vnops.c 8.6 (Berkeley) 2/17/94 - * $Id: union_vnops.c,v 1.4 1994/09/21 03:47:14 wollman Exp $ + * $Id: union_vnops.c,v 1.5 1994/09/21 23:22:45 wollman Exp $ */ #include <sys/param.h> @@ -128,7 +128,7 @@ union_lookup1(udvp, dvp, vpp, cnp) if (mp->mnt_flag & MNT_MLOCK) { mp->mnt_flag |= MNT_MWAIT; - sleep((caddr_t) mp, PVFS); + (void) tsleep((caddr_t) mp, PVFS, "unlkup", 0); continue; } @@ -1253,7 +1253,7 @@ union_lock(ap) start: while (vp->v_flag & VXLOCK) { vp->v_flag |= VXWANT; - sleep((caddr_t)vp, PINOD); + (void) tsleep((caddr_t)vp, PINOD, "unnlk1", 0); } un = VTOUNION(vp); @@ -1276,7 +1276,7 @@ start: panic("union: locking against myself"); #endif un->un_flags |= UN_WANT; - sleep((caddr_t) &un->un_flags, PINOD); + (void) tsleep((caddr_t) &un->un_flags, PINOD, "unnlk2", 0); goto start; } |