Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern sel_do_scan: do not bother to assert for SEL_SCANNI...
details: https://anonhg.NetBSD.org/src/rev/bb5b17701766
branches: trunk
changeset: 756224:bb5b17701766
user: rmind <rmind%NetBSD.org@localhost>
date: Thu Jul 08 23:15:23 2010 +0000
description:
sel_do_scan: do not bother to assert for SEL_SCANNING state before blocking,
as it might also be SEL_BLOCKING due to spurious wake-ups. That has no harm.
diffstat:
sys/kern/sys_select.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r b87ac258ab35 -r bb5b17701766 sys/kern/sys_select.c
--- a/sys/kern/sys_select.c Thu Jul 08 22:46:34 2010 +0000
+++ b/sys/kern/sys_select.c Thu Jul 08 23:15:23 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_select.c,v 1.23 2010/07/08 12:23:31 rmind Exp $ */
+/* $NetBSD: sys_select.c,v 1.24 2010/07/08 23:15:23 rmind Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.
@@ -84,7 +84,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.23 2010/07/08 12:23:31 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_select.c,v 1.24 2010/07/08 23:15:23 rmind Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -302,7 +302,6 @@
mutex_spin_exit(lock);
continue;
}
- KASSERT(l->l_selflag == SEL_SCANNING);
/* Nothing happen, therefore - sleep. */
l->l_selflag = SEL_BLOCKING;
l->l_kpriority = true;
Home |
Main Index |
Thread Index |
Old Index