]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r276534:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 11 Jan 2015 12:25:10 +0000 (12:25 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 11 Jan 2015 12:25:10 +0000 (12:25 +0000)
commite874073be0d63d3017f4d97f9ecd66838c2d9922
tree0e8ba4569e787712c0a96c16f219360cd5733a97
parentee6504ae128b21b9c8d3e79d422d2309b349e1a0
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()".

git-svn-id: svn://svn.freebsd.org/base/stable/10@276972 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/vt/vt_core.c