diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-01-11 12:25:10 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-01-11 12:25:10 +0000 |
commit | dd1bd8c59187bdd5b23cd4deaff30bd37228bdf9 (patch) | |
tree | 0e8ba4569e787712c0a96c16f219360cd5733a97 /lib/libc/stdlib/tdelete.c | |
parent | f17550e390afea114ef25ae736f4483da1ac5ec1 (diff) | |
download | FreeBSD-src-dd1bd8c59187bdd5b23cd4deaff30bd37228bdf9.zip FreeBSD-src-dd1bd8c59187bdd5b23cd4deaff30bd37228bdf9.tar.gz |
MFC r276534:
The "vt_suspend_flush_timer()" function is sometimes called locked
which prevents us from doing a "callout_drain()" call. The callout in
question has a lock associated with it and we are not freeing the
callout. That means we can use the "callout_stop()" function to
atomically stop the callback iff the "callout_stop()" function is
called locked. This patch applies proper locking to "callout_stop()"
and replaces a "callout_drain()" with a "callout_stop()".
Diffstat (limited to 'lib/libc/stdlib/tdelete.c')
0 files changed, 0 insertions, 0 deletions