Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern Fill in l_wmesg since some proc-wa...
details: https://anonhg.NetBSD.org/src/rev/cc515e736074
branches: trunk
changeset: 761449:cc515e736074
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jan 27 21:55:25 2011 +0000
description:
Fill in l_wmesg since some proc-walkers assume it.
diffstat:
sys/rump/librump/rumpkern/sleepq.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r afbb1bf568f1 -r cc515e736074 sys/rump/librump/rumpkern/sleepq.c
--- a/sys/rump/librump/rumpkern/sleepq.c Thu Jan 27 19:09:06 2011 +0000
+++ b/sys/rump/librump/rumpkern/sleepq.c Thu Jan 27 21:55:25 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sleepq.c,v 1.11 2011/01/12 12:51:21 pooka Exp $ */
+/* $NetBSD: sleepq.c,v 1.12 2011/01/27 21:55:25 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sleepq.c,v 1.11 2011/01/12 12:51:21 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sleepq.c,v 1.12 2011/01/27 21:55:25 pooka Exp $");
#include <sys/param.h>
#include <sys/condvar.h>
@@ -73,6 +73,7 @@
struct lwp *l = curlwp;
l->l_wchan = wc;
+ l->l_wmesg = wmsg;
l->l_sleepq = sq;
TAILQ_INSERT_TAIL(sq, l, l_sleepchain);
}
@@ -91,6 +92,7 @@
if (error == EWOULDBLOCK || error == EINTR) {
TAILQ_REMOVE(l->l_sleepq, l, l_sleepchain);
l->l_wchan = NULL;
+ l->l_wmesg = NULL;
}
}
mutex_spin_exit(mp);
@@ -115,6 +117,7 @@
if (l->l_wchan == wchan) {
found = true;
l->l_wchan = NULL;
+ l->l_wmesg = NULL;
l->l_mutex = NULL;
TAILQ_REMOVE(sq, l, l_sleepchain);
}
@@ -131,6 +134,7 @@
{
l->l_wchan = NULL;
+ l->l_wmesg = NULL;
l->l_mutex = NULL;
TAILQ_REMOVE(l->l_sleepq, l, l_sleepchain);
cv_broadcast(&sq_cv);
Home |
Main Index |
Thread Index |
Old Index