diff options
author | zml <zml@FreeBSD.org> | 2010-04-30 16:29:05 +0000 |
---|---|---|
committer | zml <zml@FreeBSD.org> | 2010-04-30 16:29:05 +0000 |
commit | 3eac0000f02cd2cb160464ae01b04fe3415e4b60 (patch) | |
tree | e93cf5353c02643df797316682ae4b711e713702 /sys/netgraph/ng_source.c | |
parent | 96ebc710b900ffe0a980b10e539b88278805741c (diff) | |
download | FreeBSD-src-3eac0000f02cd2cb160464ae01b04fe3415e4b60.zip FreeBSD-src-3eac0000f02cd2cb160464ae01b04fe3415e4b60.tar.gz |
Handle taskqueue_drain(9) correctly on a threaded taskqueue:
taskqueue_drain(9) will not correctly detect whether a task is
currently running. The check is against a field in the taskqueue
struct, but for a threaded queue with more than one thread, multiple
threads can simultaneously be running a task, thus stomping over the
tq_running field.
Submitted by: Matthew Fleming <matthew.fleming@isilon.com>
Reviewed by: jhb
Approved by: dfr (mentor)
Diffstat (limited to 'sys/netgraph/ng_source.c')
0 files changed, 0 insertions, 0 deletions