Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/sys/kern In resetprocpriority(), iterate with l_sibling...
details: https://anonhg.NetBSD.org/src/rev/cd45f9abaffe
branches: nathanw_sa
changeset: 506532:cd45f9abaffe
user: nathanw <nathanw%NetBSD.org@localhost>
date: Wed Dec 04 22:40:41 2002 +0000
description:
In resetprocpriority(), iterate with l_sibling, not l_list, so as to
only iterate over the LWPs in a process, not every entry on the alllwp
list after this process(!).
diffstat:
sys/kern/kern_synch.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d79a7c57c760 -r cd45f9abaffe sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c Wed Dec 04 21:59:09 2002 +0000
+++ b/sys/kern/kern_synch.c Wed Dec 04 22:40:41 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_synch.c,v 1.101.2.26 2002/11/14 23:02:44 nathanw Exp $ */
+/* $NetBSD: kern_synch.c,v 1.101.2.27 2002/12/04 22:40:41 nathanw Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.101.2.26 2002/11/14 23:02:44 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.101.2.27 2002/12/04 22:40:41 nathanw Exp $");
#include "opt_ddb.h"
#include "opt_ktrace.h"
@@ -1067,7 +1067,7 @@
{
struct lwp *l;
- LIST_FOREACH(l, &p->p_lwps, l_list)
+ LIST_FOREACH(l, &p->p_lwps, l_sibling)
resetpriority(l);
}
Home |
Main Index |
Thread Index |
Old Index