diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-31 06:40:18 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-10-31 06:40:18 +0000 |
commit | f3184ac14f03da17bde002ccff8abf43076b34bc (patch) | |
tree | 095aba03ec9c46097cdee71ffbe0a3cf6726ded1 /sys/arch/hp300 | |
parent | 84fb3053dd046225edb7868a8dd17410070e5b8c (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/hp300')
-rw-r--r-- | sys/arch/hp300/dev/apci.c | 3 | ||||
-rw-r--r-- | sys/arch/hp300/dev/dca.c | 3 | ||||
-rw-r--r-- | sys/arch/hp300/dev/dcm.c | 3 |
3 files changed, 6 insertions, 3 deletions
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 |