aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-11-06 08:44:15 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-11-06 08:44:15 +0000
commit42e9339d38231716bbae05680dc3c738e32f1fd2 (patch)
treee19490e3645e1dbcf5156fb6e791cd8bf3997ed8 /sys
parent76fe20f0be9a5aa59198c66bb8d252f73e93c606 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/kern_lock.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/vm/kern_lock.c b/sys/vm/kern_lock.c
index e94506460fe0..032dec6b6bf6 100644
--- a/sys/vm/kern_lock.c
+++ b/sys/vm/kern_lock.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: kern_lock.c,v 1.6 1995/05/30 08:15:49 rgrimes Exp $
+ * $Id: kern_lock.c,v 1.7 1995/07/13 08:48:12 davidg Exp $
*/
/*
@@ -89,8 +89,13 @@ lock_init(l, can_sleep)
lock_t l;
boolean_t can_sleep;
{
- bzero(l, sizeof(*l));
+ l->want_write = 0;
+ l->want_upgrade = 0;
+ l->waiting = 0;
l->can_sleep = can_sleep;
+ l->read_count = 0;
+ l->proc = NULL;
+ l->recursion_depth = 0;
}
void