diff options
author | 2008-10-28 11:49:28 +0000 | |
---|---|---|
committer | 2008-10-28 11:49:28 +0000 | |
commit | be37a9cb8c090e95bb4aef606ca952daaa720f69 (patch) | |
tree | dbfe248681ada84083b79e35f9a6a7ae9a3dcdd7 | |
parent | Major overhaul of bio. (diff) | |
download | wireguard-openbsd-be37a9cb8c090e95bb4aef606ca952daaa720f69.tar.xz wireguard-openbsd-be37a9cb8c090e95bb4aef606ca952daaa720f69.zip |
Be nicer waking up.
prompted and ok dlg
-rw-r--r-- | sys/dev/ic/ami.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index 54a838853d3..1de012723c3 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.188 2008/10/28 11:43:10 marco Exp $ */ +/* $OpenBSD: ami.c,v 1.189 2008/10/28 11:49:28 marco Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -188,7 +188,8 @@ ami_remove_runq(struct ami_ccb *ccb) TAILQ_REMOVE(&ccb->ccb_sc->sc_ccb_runq, ccb, ccb_link); if (TAILQ_EMPTY(&ccb->ccb_sc->sc_ccb_runq)) { ccb->ccb_sc->sc_drained = 1; - wakeup(ccb->ccb_sc); + if (sc->sc_drainio) + wakeup(ccb->ccb_sc); } } |