Module Name: src Committed By: pooka Date: Sun May 5 12:27:38 UTC 2013
Modified Files: src/lib/librumpuser: rumpuser_pth.c Log Message: Initialize rw->downgrade when allocating a rwlock. should/might/etc fix recent test hangs reported by martin & pgoyette To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/lib/librumpuser/rumpuser_pth.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpuser/rumpuser_pth.c diff -u src/lib/librumpuser/rumpuser_pth.c:1.27 src/lib/librumpuser/rumpuser_pth.c:1.28 --- src/lib/librumpuser/rumpuser_pth.c:1.27 Fri May 3 00:23:49 2013 +++ src/lib/librumpuser/rumpuser_pth.c Sun May 5 12:27:38 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_pth.c,v 1.27 2013/05/03 00:23:49 pooka Exp $ */ +/* $NetBSD: rumpuser_pth.c,v 1.28 2013/05/05 12:27:38 pooka Exp $ */ /* * Copyright (c) 2007-2010 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ #include "rumpuser_port.h" #if !defined(lint) -__RCSID("$NetBSD: rumpuser_pth.c,v 1.27 2013/05/03 00:23:49 pooka Exp $"); +__RCSID("$NetBSD: rumpuser_pth.c,v 1.28 2013/05/05 12:27:38 pooka Exp $"); #endif /* !lint */ #include <sys/queue.h> @@ -317,6 +317,7 @@ rumpuser_rw_init(struct rumpuser_rw **rw NOFAIL_ERRNO(pthread_spin_init(&((*rw)->spin),PTHREAD_PROCESS_PRIVATE)); (*rw)->readers = 0; (*rw)->writer = NULL; + (*rw)->downgrade = 0; } void