summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-10-31 06:40:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-10-31 06:40:18 +0000
commitf3184ac14f03da17bde002ccff8abf43076b34bc (patch)
tree095aba03ec9c46097cdee71ffbe0a3cf6726ded1 /sys/arch
parent84fb3053dd046225edb7868a8dd17410070e5b8c (diff)
Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()
calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/alpha/promcons.c3
-rw-r--r--sys/arch/alpha/tc/scc.c4
-rw-r--r--sys/arch/arm/s3c2xx0/sscom.c3
-rw-r--r--sys/arch/aviion/dev/dart.c3
-rw-r--r--sys/arch/hp300/dev/apci.c3
-rw-r--r--sys/arch/hp300/dev/dca.c3
-rw-r--r--sys/arch/hp300/dev/dcm.c3
-rw-r--r--sys/arch/hppa/dev/pdc.c3
-rw-r--r--sys/arch/hppa64/dev/pdc.c3
-rw-r--r--sys/arch/luna88k/dev/siotty.c3
-rw-r--r--sys/arch/mac68k/dev/z8530tty.c3
-rw-r--r--sys/arch/macppc/dev/z8530tty.c3
-rw-r--r--sys/arch/mvme68k/dev/cl.c4
-rw-r--r--sys/arch/mvme68k/dev/dart.c3
-rw-r--r--sys/arch/mvme68k/dev/wl.c3
-rw-r--r--sys/arch/mvme68k/dev/zs.c4
-rw-r--r--sys/arch/mvme88k/dev/cl.c4
-rw-r--r--sys/arch/mvme88k/dev/dart.c3
-rw-r--r--sys/arch/sh/dev/scif.c3
-rw-r--r--sys/arch/sparc/dev/magma.c3
-rw-r--r--sys/arch/sparc/dev/spif.c3
-rw-r--r--sys/arch/sparc/dev/z8530tty.c3
-rw-r--r--sys/arch/sparc64/dev/pcons.c3
-rw-r--r--sys/arch/sparc64/dev/sab.c3
-rw-r--r--sys/arch/sparc64/dev/sbbc.c3
-rw-r--r--sys/arch/sparc64/dev/vcctty.c3
-rw-r--r--sys/arch/sparc64/dev/vcons.c3
-rw-r--r--sys/arch/sparc64/dev/z8530tty.c3
-rw-r--r--sys/arch/vax/qbus/dhu.c3
-rw-r--r--sys/arch/vax/qbus/dl.c3
-rw-r--r--sys/arch/vax/qbus/dz.c3
-rw-r--r--sys/arch/vax/qbus/qd.c6
-rw-r--r--sys/arch/vax/vax/gencons.c3
-rw-r--r--sys/arch/vax/vxt/qsc.c3
34 files changed, 75 insertions, 34 deletions
diff --git a/sys/arch/alpha/alpha/promcons.c b/sys/arch/alpha/alpha/promcons.c
index 5ff451ef1ab..279cc3e0235 100644
--- a/sys/arch/alpha/alpha/promcons.c
+++ b/sys/arch/alpha/alpha/promcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: promcons.c,v 1.9 2005/11/21 18:16:36 millert Exp $ */
+/* $OpenBSD: promcons.c,v 1.10 2009/10/31 06:40:14 deraadt Exp $ */
/* $NetBSD: promcons.c,v 1.5 1996/11/13 22:20:55 cgd Exp $ */
/*
@@ -191,6 +191,7 @@ promstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/alpha/tc/scc.c b/sys/arch/alpha/tc/scc.c
index 7111bf89f08..7ef8289c2a5 100644
--- a/sys/arch/alpha/tc/scc.c
+++ b/sys/arch/alpha/tc/scc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scc.c,v 1.22 2008/08/09 16:42:29 miod Exp $ */
+/* $OpenBSD: scc.c,v 1.23 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: scc.c,v 1.58 2002/03/17 19:40:27 atatat Exp $ */
/*
@@ -927,6 +927,7 @@ sccstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0)
goto out;
@@ -946,6 +947,7 @@ sccstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
goto out;
}
diff --git a/sys/arch/arm/s3c2xx0/sscom.c b/sys/arch/arm/s3c2xx0/sscom.c
index 70069f3a818..f016e49a7c3 100644
--- a/sys/arch/arm/s3c2xx0/sscom.c
+++ b/sys/arch/arm/s3c2xx0/sscom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sscom.c,v 1.11 2009/10/13 19:33:16 pirofti Exp $ */
+/* $OpenBSD: sscom.c,v 1.12 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: sscom.c,v 1.29 2008/06/11 22:37:21 cegger Exp $ */
/*
@@ -1378,6 +1378,7 @@ sscomstart(struct tty *tp)
if (tp->t_outq.c_cc == 0)
goto out;
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
SET(tp->t_state, TS_BUSY);
diff --git a/sys/arch/aviion/dev/dart.c b/sys/arch/aviion/dev/dart.c
index 7be2a1336c8..c30f7a712bc 100644
--- a/sys/arch/aviion/dev/dart.c
+++ b/sys/arch/aviion/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.4 2008/01/23 16:37:58 jsing Exp $ */
+/* $OpenBSD: dart.c,v 1.5 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Mach Operating System
@@ -268,6 +268,7 @@ dartstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto bail;
}
diff --git a/sys/arch/hp300/dev/apci.c b/sys/arch/hp300/dev/apci.c
index f15b54817fa..e565492500b 100644
--- a/sys/arch/hp300/dev/apci.c
+++ b/sys/arch/hp300/dev/apci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apci.c,v 1.33 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: apci.c,v 1.34 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: apci.c,v 1.9 2000/11/02 00:35:05 eeh Exp $ */
/*-
@@ -770,6 +770,7 @@ apcistart(tp)
if (tp->t_outq.c_cc == 0)
goto out;
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (apci->ap_lsr & LSR_TXRDY) {
tp->t_state |= TS_BUSY;
diff --git a/sys/arch/hp300/dev/dca.c b/sys/arch/hp300/dev/dca.c
index 0c5a2891b77..235cd401ef2 100644
--- a/sys/arch/hp300/dev/dca.c
+++ b/sys/arch/hp300/dev/dca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dca.c,v 1.34 2009/01/25 13:49:49 miod Exp $ */
+/* $OpenBSD: dca.c,v 1.35 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dca.c,v 1.35 1997/05/05 20:58:18 thorpej Exp $ */
/*
@@ -869,6 +869,7 @@ dcastart(tp)
if (tp->t_outq.c_cc == 0)
goto out;
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (dca->dca_lsr & LSR_TXRDY) {
tp->t_state |= TS_BUSY;
diff --git a/sys/arch/hp300/dev/dcm.c b/sys/arch/hp300/dev/dcm.c
index 0dc135c3d20..07f1c5c836c 100644
--- a/sys/arch/hp300/dev/dcm.c
+++ b/sys/arch/hp300/dev/dcm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dcm.c,v 1.29 2008/01/23 16:37:56 jsing Exp $ */
+/* $OpenBSD: dcm.c,v 1.30 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dcm.c,v 1.41 1997/05/05 20:59:16 thorpej Exp $ */
/*
@@ -1177,6 +1177,7 @@ dcmstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0) {
#ifdef DCMSTATS
diff --git a/sys/arch/hppa/dev/pdc.c b/sys/arch/hppa/dev/pdc.c
index 19bbd462521..4e6a25d13ad 100644
--- a/sys/arch/hppa/dev/pdc.c
+++ b/sys/arch/hppa/dev/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.31 2008/01/23 16:37:56 jsing Exp $ */
+/* $OpenBSD: pdc.c,v 1.32 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -345,6 +345,7 @@ pdcstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/hppa64/dev/pdc.c b/sys/arch/hppa64/dev/pdc.c
index 7ed6dd78f57..5efb3d65068 100644
--- a/sys/arch/hppa64/dev/pdc.c
+++ b/sys/arch/hppa64/dev/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.3 2008/04/20 11:53:11 kettenis Exp $ */
+/* $OpenBSD: pdc.c,v 1.4 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -335,6 +335,7 @@ pdcstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/luna88k/dev/siotty.c b/sys/arch/luna88k/dev/siotty.c
index 44e81e48860..69c593b884a 100644
--- a/sys/arch/luna88k/dev/siotty.c
+++ b/sys/arch/luna88k/dev/siotty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siotty.c,v 1.7 2008/06/26 05:42:11 ray Exp $ */
+/* $OpenBSD: siotty.c,v 1.8 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: siotty.c,v 1.9 2002/03/17 19:40:43 atatat Exp $ */
/*-
@@ -205,6 +205,7 @@ siostart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0)
goto out;
diff --git a/sys/arch/mac68k/dev/z8530tty.c b/sys/arch/mac68k/dev/z8530tty.c
index 246485e76c1..5dd8a005625 100644
--- a/sys/arch/mac68k/dev/z8530tty.c
+++ b/sys/arch/mac68k/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.18 2009/03/15 20:40:25 miod Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.19 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.14 1996/12/17 20:42:43 gwr Exp $ */
/*
@@ -645,6 +645,7 @@ zsstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
nch = ndqb(&tp->t_outq, 0); /* XXX */
diff --git a/sys/arch/macppc/dev/z8530tty.c b/sys/arch/macppc/dev/z8530tty.c
index f9f6a33b4c6..69ef381bcd5 100644
--- a/sys/arch/macppc/dev/z8530tty.c
+++ b/sys/arch/macppc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.8 2009/01/11 16:54:59 blambert Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.9 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -787,6 +787,7 @@ zsstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c
index d37562ae19c..4c53576b10f 100644
--- a/sys/arch/mvme68k/dev/cl.c
+++ b/sys/arch/mvme68k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl.c,v 1.47 2009/05/31 12:25:52 miod Exp $ */
+/* $OpenBSD: cl.c,v 1.48 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -1555,6 +1555,7 @@ cl_txintr(arg)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
sc->cl_reg->cl_ier = sc->cl_reg->cl_ier & ~0x3;
}
@@ -1588,6 +1589,7 @@ cl_txintr(arg)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
sc->cl_reg->cl_ier = sc->cl_reg->cl_ier & ~0x3;
}
diff --git a/sys/arch/mvme68k/dev/dart.c b/sys/arch/mvme68k/dev/dart.c
index c619db6353e..73e33a83450 100644
--- a/sys/arch/mvme68k/dev/dart.c
+++ b/sys/arch/mvme68k/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.2 2009/03/01 22:08:13 miod Exp $ */
+/* $OpenBSD: dart.c,v 1.3 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Mach Operating System
@@ -283,6 +283,7 @@ dartstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto bail;
}
diff --git a/sys/arch/mvme68k/dev/wl.c b/sys/arch/mvme68k/dev/wl.c
index 1854456e1d7..7a000e827b1 100644
--- a/sys/arch/mvme68k/dev/wl.c
+++ b/sys/arch/mvme68k/dev/wl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wl.c,v 1.18 2005/11/24 22:43:16 miod Exp $ */
+/* $OpenBSD: wl.c,v 1.19 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -1218,6 +1218,7 @@ cl_txintr(sc)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
sc->cl_reg->cl_ier = sc->cl_reg->cl_ier & ~(IER_TXMPTY|IER_TXD);
}
diff --git a/sys/arch/mvme68k/dev/zs.c b/sys/arch/mvme68k/dev/zs.c
index ac3e2a4fae8..3d37b2e98d7 100644
--- a/sys/arch/mvme68k/dev/zs.c
+++ b/sys/arch/mvme68k/dev/zs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zs.c,v 1.27 2009/03/15 20:40:25 miod Exp $ */
+/* $OpenBSD: zs.c,v 1.28 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2000 Steve Murphree, Jr.
@@ -564,6 +564,7 @@ zsstop(tp, flag)
wakeup((caddr_t) & tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
}
splx(s);
@@ -912,6 +913,7 @@ zs_softint(arg)
wakeup((caddr_t) & tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_line != 0)
(*linesw[tp->t_line].l_start) (tp);
diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c
index e5b3b2a568a..5b7a1c0adc0 100644
--- a/sys/arch/mvme88k/dev/cl.c
+++ b/sys/arch/mvme88k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl.c,v 1.54 2009/05/31 12:25:53 miod Exp $ */
+/* $OpenBSD: cl.c,v 1.55 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -1426,6 +1426,7 @@ cl_txintr(arg)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
bus_space_write_1(iot, ioh, CL_IER,
bus_space_read_1(iot, ioh, CL_IER) & ~0x03);
@@ -1457,6 +1458,7 @@ cl_txintr(arg)
wakeup((caddr_t) &tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
bus_space_write_1(iot, ioh, CL_IER,
bus_space_read_1(iot, ioh, CL_IER) & ~0x03);
diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c
index f96fd2f9878..32a3f6e3d42 100644
--- a/sys/arch/mvme88k/dev/dart.c
+++ b/sys/arch/mvme88k/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.51 2008/01/23 16:37:57 jsing Exp $ */
+/* $OpenBSD: dart.c,v 1.52 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Mach Operating System
@@ -312,6 +312,7 @@ dartstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto bail;
}
diff --git a/sys/arch/sh/dev/scif.c b/sys/arch/sh/dev/scif.c
index 04aaf0607c1..c2037d934d4 100644
--- a/sys/arch/sh/dev/scif.c
+++ b/sys/arch/sh/dev/scif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scif.c,v 1.7 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: scif.c,v 1.8 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: scif.c,v 1.47 2006/07/23 22:06:06 ad Exp $ */
/*-
@@ -491,6 +491,7 @@ scifstart(struct tty *tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/arch/sparc/dev/magma.c b/sys/arch/sparc/dev/magma.c
index 05b217a790f..18dbf2179fd 100644
--- a/sys/arch/sparc/dev/magma.c
+++ b/sys/arch/sparc/dev/magma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: magma.c,v 1.21 2009/04/10 20:53:51 miod Exp $ */
+/* $OpenBSD: magma.c,v 1.22 2009/10/31 06:40:16 deraadt Exp $ */
/*-
* Copyright (c) 1998 Iain Hibbert
@@ -1208,6 +1208,7 @@ mtty_start(tp)
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
/*
diff --git a/sys/arch/sparc/dev/spif.c b/sys/arch/sparc/dev/spif.c
index 4102f97246b..2df4e24a932 100644
--- a/sys/arch/sparc/dev/spif.c
+++ b/sys/arch/sparc/dev/spif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spif.c,v 1.21 2009/04/10 20:53:51 miod Exp $ */
+/* $OpenBSD: spif.c,v 1.22 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -682,6 +682,7 @@ stty_start(tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc) {
sp->sp_txc = ndqb(&tp->t_outq, 0);
diff --git a/sys/arch/sparc/dev/z8530tty.c b/sys/arch/sparc/dev/z8530tty.c
index 83d7da7d24d..7ab3048b71e 100644
--- a/sys/arch/sparc/dev/z8530tty.c
+++ b/sys/arch/sparc/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.10 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.11 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*-
@@ -808,6 +808,7 @@ zsstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c
index 9f738e358bc..293f35bd8c0 100644
--- a/sys/arch/sparc64/dev/pcons.c
+++ b/sys/arch/sparc64/dev/pcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcons.c,v 1.14 2009/09/05 14:09:35 miod Exp $ */
+/* $OpenBSD: pcons.c,v 1.15 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */
/*-
@@ -359,6 +359,7 @@ pconsstart(tp)
wakeup(cl);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
splx(s);
}
diff --git a/sys/arch/sparc64/dev/sab.c b/sys/arch/sparc64/dev/sab.c
index 8d6ecef0628..904cd1f1700 100644
--- a/sys/arch/sparc64/dev/sab.c
+++ b/sys/arch/sparc64/dev/sab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sab.c,v 1.25 2008/05/24 00:11:31 kettenis Exp $ */
+/* $OpenBSD: sab.c,v 1.26 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -1099,6 +1099,7 @@ sabtty_start(tp)
wakeup(&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc) {
sc->sc_txc = ndqb(&tp->t_outq, 0);
diff --git a/sys/arch/sparc64/dev/sbbc.c b/sys/arch/sparc64/dev/sbbc.c
index 2308365fd45..3ae379c3d21 100644
--- a/sys/arch/sparc64/dev/sbbc.c
+++ b/sys/arch/sparc64/dev/sbbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbbc.c,v 1.5 2008/10/05 10:51:39 kettenis Exp $ */
+/* $OpenBSD: sbbc.c,v 1.6 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
*
@@ -629,6 +629,7 @@ sbbcstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/sparc64/dev/vcctty.c b/sys/arch/sparc64/dev/vcctty.c
index 170f2278905..5c59a33c530 100644
--- a/sys/arch/sparc64/dev/vcctty.c
+++ b/sys/arch/sparc64/dev/vcctty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vcctty.c,v 1.1 2009/05/10 12:24:04 kettenis Exp $ */
+/* $OpenBSD: vcctty.c,v 1.2 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2009 Mark Kettenis
*
@@ -440,6 +440,7 @@ vccttystart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/sparc64/dev/vcons.c b/sys/arch/sparc64/dev/vcons.c
index 8cb47894af6..a1daee4977c 100644
--- a/sys/arch/sparc64/dev/vcons.c
+++ b/sys/arch/sparc64/dev/vcons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vcons.c,v 1.5 2008/11/24 16:19:33 kettenis Exp $ */
+/* $OpenBSD: vcons.c,v 1.6 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
*
@@ -280,6 +280,7 @@ vconsstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
tp->t_state |= TS_BUSY;
while (tp->t_outq.c_cc != 0)
diff --git a/sys/arch/sparc64/dev/z8530tty.c b/sys/arch/sparc64/dev/z8530tty.c
index 80a14247bcc..c1312a6b23b 100644
--- a/sys/arch/sparc64/dev/z8530tty.c
+++ b/sys/arch/sparc64/dev/z8530tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530tty.c,v 1.15 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.16 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */
/*-
@@ -776,6 +776,7 @@ zsstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto out;
}
diff --git a/sys/arch/vax/qbus/dhu.c b/sys/arch/vax/qbus/dhu.c
index ebcfd18277b..cbd8c52e7ef 100644
--- a/sys/arch/vax/qbus/dhu.c
+++ b/sys/arch/vax/qbus/dhu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhu.c,v 1.12 2004/09/19 21:34:42 mickey Exp $ */
+/* $OpenBSD: dhu.c,v 1.13 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dhu.c,v 1.19 2000/06/04 06:17:01 matt Exp $ */
/*
* Copyright (c) 2003, Hugh Graham.
@@ -645,6 +645,7 @@ dhustart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0)
goto out;
diff --git a/sys/arch/vax/qbus/dl.c b/sys/arch/vax/qbus/dl.c
index 4339f9d29ec..483fe9559af 100644
--- a/sys/arch/vax/qbus/dl.c
+++ b/sys/arch/vax/qbus/dl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dl.c,v 1.6 2008/06/26 05:42:14 ray Exp $ */
+/* $OpenBSD: dl.c,v 1.7 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dl.c,v 1.11 2000/01/24 02:40:29 matt Exp $ */
/*-
@@ -464,6 +464,7 @@ dlstart(tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (tp->t_outq.c_cc == 0)
goto out;
diff --git a/sys/arch/vax/qbus/dz.c b/sys/arch/vax/qbus/dz.c
index 3ce7edc9313..ba42e67dab8 100644
--- a/sys/arch/vax/qbus/dz.c
+++ b/sys/arch/vax/qbus/dz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dz.c,v 1.17 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: dz.c,v 1.18 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: dz.c,v 1.23 2000/06/04 02:14:12 matt Exp $ */
/*
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
@@ -480,6 +480,7 @@ dzstart(struct tty *tp)
wakeup((caddr_t)cl);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
if (cl->c_cc == 0) {
splx(s);
diff --git a/sys/arch/vax/qbus/qd.c b/sys/arch/vax/qbus/qd.c
index dc8899c3a67..0a452e5099b 100644
--- a/sys/arch/vax/qbus/qd.c
+++ b/sys/arch/vax/qbus/qd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qd.c,v 1.14 2008/08/24 14:49:58 miod Exp $ */
+/* $OpenBSD: qd.c,v 1.15 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: qd.c,v 1.17 2000/01/24 02:40:29 matt Exp $ */
/*-
@@ -2065,6 +2065,7 @@ qddint(arg)
if (qdrsel[dv->dv_unit].si_pid && qdflags[dv->dv_unit].selmask & SEL_WRITE) {
selwakeup(&qdrsel[dv->dv_unit]);
+ KNOTE(&qdrsel[dv->dv_unit].si_note, 0);
qdrsel[dv->dv_unit].si_pid = 0;
qdflags[dv->dv_unit].selmask &= ~SEL_WRITE;
}
@@ -2084,6 +2085,7 @@ qddint(arg)
if (DMA_ISFULL(header)) {
if (qdrsel[dv->dv_unit].si_pid && qdflags[dv->dv_unit].selmask & SEL_WRITE) {
selwakeup(&qdrsel[dv->dv_unit]);
+ KNOTE(&qdrsel[dv->dv_unit].si_note, 0);
qdrsel[dv->dv_unit].si_pid = 0;
qdflags[dv->dv_unit].selmask &= ~SEL_WRITE;
}
@@ -2104,6 +2106,7 @@ qddint(arg)
if (DMA_ISEMPTY(header)) {
if (qdrsel[dv->dv_unit].si_pid && qdflags[dv->dv_unit].selmask & SEL_WRITE) {
selwakeup(&qdrsel[dv->dv_unit]);
+ KNOTE(&qdrsel[dv->dv_unit].si_note, 0);
qdrsel[dv->dv_unit].si_pid = 0;
qdflags[dv->dv_unit].selmask &= ~SEL_WRITE;
}
@@ -2737,6 +2740,7 @@ GET_TBUTTON:
*/
if (qdrsel[dv->dv_unit].si_pid && do_wakeup && qdflags[dv->dv_unit].selmask & SEL_READ) {
selwakeup(&qdrsel[dv->dv_unit]);
+ KNOTE(&qdrsel[dv->dv_unit].si_note, 0);
qdrsel[dv->dv_unit].si_pid = 0;
qdflags[dv->dv_unit].selmask &= ~SEL_READ;
do_wakeup = 0;
diff --git a/sys/arch/vax/vax/gencons.c b/sys/arch/vax/vax/gencons.c
index 5158f4205ea..a66f7740049 100644
--- a/sys/arch/vax/vax/gencons.c
+++ b/sys/arch/vax/vax/gencons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gencons.c,v 1.18 2008/01/23 16:37:57 jsing Exp $ */
+/* $OpenBSD: gencons.c,v 1.19 2009/10/31 06:40:16 deraadt Exp $ */
/* $NetBSD: gencons.c,v 1.22 2000/01/24 02:40:33 matt Exp $ */
/*
@@ -192,6 +192,7 @@ gencnstart(struct tty *tp)
wakeup((caddr_t)cl);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
}
out: splx(s);
diff --git a/sys/arch/vax/vxt/qsc.c b/sys/arch/vax/vxt/qsc.c
index c69b4b950be..3d932229682 100644
--- a/sys/arch/vax/vxt/qsc.c
+++ b/sys/arch/vax/vxt/qsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qsc.c,v 1.2 2008/01/23 16:37:57 jsing Exp $ */
+/* $OpenBSD: qsc.c,v 1.3 2009/10/31 06:40:16 deraadt Exp $ */
/*
* Copyright (c) 2006 Miodrag Vallat.
*
@@ -351,6 +351,7 @@ qscstart(struct tty *tp)
wakeup((caddr_t)&tp->t_outq);
}
selwakeup(&tp->t_wsel);
+ KNOTE(&tp->t_wsel.si_note, 0);
if (tp->t_outq.c_cc == 0)
goto bail;
}