diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2006-05-07 20:12:42 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2006-05-07 20:12:42 +0000 |
commit | 5b458e8d496bd0cdc94f0ec7a9ff9ae741d961ed (patch) | |
tree | 6159b73e9e098b39bf803a6b9e74326ab3bc1345 /sys/nfs | |
parent | 4a02f1bb86ffaf58c243035d5c3117d4611db8eb (diff) |
add a name to rwlock so that we can tell where procs are getting stuck
without breaking into ddb. doubles the size of rwlock [1], but moving
forward this really helps. ok/tested pedro fgsch millert krw
[1 - next person to add a field to this struct gets whipped with a wet noodle]
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c index e74d17a39bb..934b9d0bb5f 100644 --- a/sys/nfs/nfs_node.c +++ b/sys/nfs/nfs_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_node.c,v 1.31 2006/01/09 12:43:16 pedro Exp $ */ +/* $OpenBSD: nfs_node.c,v 1.32 2006/05/07 20:12:41 tedu Exp $ */ /* $NetBSD: nfs_node.c,v 1.16 1996/02/18 11:53:42 fvdl Exp $ */ /* @@ -128,7 +128,7 @@ loop: vp->v_data = np; np->n_vnode = vp; - rw_init(&np->n_commitlock); + rw_init(&np->n_commitlock, "nfs_commitlk"); /* * Are we getting the root? If so, make sure the vnode flags |