Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern don't check signals while waiting for other kqueue ...



details:   https://anonhg.NetBSD.org/src/rev/acb0c21edc6e
branches:  trunk
changeset: 950291:acb0c21edc6e
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Jan 24 11:31:47 2021 +0000

description:
don't check signals while waiting for other kqueue scans to finish

reportedly somewhat improves behaviour for PR kern/55946

part of PR kern/50094 fix

diffstat:

 sys/kern/kern_event.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 32fcbd48138a -r acb0c21edc6e sys/kern/kern_event.c
--- a/sys/kern/kern_event.c     Sun Jan 24 11:21:58 2021 +0000
+++ b/sys/kern/kern_event.c     Sun Jan 24 11:31:47 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_event.c,v 1.113 2021/01/21 19:37:23 jdolecek Exp $        */
+/*     $NetBSD: kern_event.c,v 1.114 2021/01/24 11:31:47 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.113 2021/01/21 19:37:23 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.114 2021/01/24 11:31:47 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1470,7 +1470,7 @@
                                KQ_FLUX_WAKEUP(kq);
                        }
                        mutex_exit(&fdp->fd_lock);
-                       (void)cv_wait_sig(&kq->kq_cv, &kq->kq_lock);
+                       (void)cv_wait(&kq->kq_cv, &kq->kq_lock);
                        goto relock;
                }
 



Home | Main Index | Thread Index | Old Index