Module Name: src Committed By: rmind Date: Thu Jul 8 23:15:23 UTC 2010
Modified Files: src/sys/kern: sys_select.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/kern/sys_select.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/sys_select.c diff -u src/sys/kern/sys_select.c:1.23 src/sys/kern/sys_select.c:1.24 --- src/sys/kern/sys_select.c:1.23 Thu Jul 8 12:23:31 2010 +++ src/sys/kern/sys_select.c Thu Jul 8 23:15:23 2010 @@ -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;