aboutsummaryrefslogtreecommitdiff
path: root/sys/kgssapi
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2017-02-07 14:49:36 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2017-02-07 14:49:36 +0000
commit8e5a3e9a9d926ac36fbc43133ed9e1d03e5d47e9 (patch)
tree9a9906685ffe17df8862adb359e8a58be41c303f /sys/kgssapi
parent5267f6243d05744730cb1ab7be660d2f3972dda9 (diff)
downloadsrc-8e5a3e9a9d926ac36fbc43133ed9e1d03e5d47e9.tar.gz
src-8e5a3e9a9d926ac36fbc43133ed9e1d03e5d47e9.zip
locks: change backoff to exponential
Previous implementation would use a random factor to spread readers and reduce chances of starvation. This visibly reduces effectiveness of the mechanism. Switch to the more traditional exponential variant. Try to limit starvation by imposing an upper limit of spins after which spinning is half of what other threads get. Note the mechanism is turned off by default. Reviewed by: kib (previous version)
Notes
Notes: svn path=/head/; revision=313386
Diffstat (limited to 'sys/kgssapi')
0 files changed, 0 insertions, 0 deletions