diff options
author | phk <phk@FreeBSD.org> | 2004-01-23 21:09:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-01-23 21:09:38 +0000 |
commit | 0592926b471595a34b1a47c19cca659c664de37c (patch) | |
tree | 4734bd32ddc9e25dcd9408bdc39b744a5a4b4f54 | |
parent | 597deaa7b82de573cdd1aee2920ecf0bbce8ab0b (diff) | |
download | FreeBSD-src-0592926b471595a34b1a47c19cca659c664de37c.zip FreeBSD-src-0592926b471595a34b1a47c19cca659c664de37c.tar.gz |
Make sure to keep track of canceled events.
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
-rw-r--r-- | sys/geom/geom_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 2afaad6..4b9509a 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -242,6 +242,8 @@ g_cancel_event(void *ref) } else { g_free(ep); } + if (--g_pending_events == 0) + wakeup(&g_pending_events); break; } } |