summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/getdelim.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2015-01-11 12:25:10 +0000
committerhselasky <hselasky@FreeBSD.org>2015-01-11 12:25:10 +0000
commitdd1bd8c59187bdd5b23cd4deaff30bd37228bdf9 (patch)
tree0e8ba4569e787712c0a96c16f219360cd5733a97 /lib/libc/stdio/getdelim.c
parentf17550e390afea114ef25ae736f4483da1ac5ec1 (diff)
downloadFreeBSD-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/stdio/getdelim.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud