summaryrefslogtreecommitdiffstats
path: root/sbin/swapon
diff options
context:
space:
mode:
authorrstone <rstone@FreeBSD.org>2013-06-28 15:55:30 +0000
committerrstone <rstone@FreeBSD.org>2013-06-28 15:55:30 +0000
commit4b2a7a843ce200759f962b91ce75977ae270fe3f (patch)
tree4ca3993bd944a09d4ab9682fa85cf585be099ca8 /sbin/swapon
parent73bda9cc43e49e4ad70fa65360cdef85c0c5752c (diff)
downloadFreeBSD-src-4b2a7a843ce200759f962b91ce75977ae270fe3f.zip
FreeBSD-src-4b2a7a843ce200759f962b91ce75977ae270fe3f.tar.gz
Correct a bug that prevented deadlkres from (almost) ever firing.
deadlkres was using a reversed test to check whether ticks had rolled over. This meant that deadlkres could only fire after ticks had rolled over. This test was actually unnecessary as deadlkres only ever took the difference of ticks values which is safe even in the presence of ticks rollover. Remove the tests entirely. Now deadlkres will properly fire after a lock has been held after the timeout period. MFC after: 1 month
Diffstat (limited to 'sbin/swapon')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud