diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-01-02 13:35:10 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-01-02 13:35:10 +0000 |
commit | e25dfbc31260e5012ee9a789abf8c2973553d61a (patch) | |
tree | 6a6cac847815c1989ee30532c03a67d574c36dea /contrib/netbsd-tests/lib/libc | |
parent | 76a7fec0c1075f7cdb7c1678811b62707d4e50ad (diff) | |
download | FreeBSD-src-e25dfbc31260e5012ee9a789abf8c2973553d61a.zip FreeBSD-src-e25dfbc31260e5012ee9a789abf8c2973553d61a.tar.gz |
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()".
MFC after: 1 week
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
0 files changed, 0 insertions, 0 deletions