kernel - Fix race in callout_stop_sync()
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 20 Jan 2012 18:23:06 +0000 (10:23 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 20 Jan 2012 18:23:06 +0000 (10:23 -0800)
commit7881367cc47b64348df063a9c6962909d1f1eb71
treea4170b86e618de96ee6c87a698f9ceff62efafc5
parentbb79834d4440c42ded824722460ae008a58ecf26
kernel - Fix race in callout_stop_sync()

* When callout_stop_sync() races a timeout callback which re-arms the
  callout it can hit an assertion.  The assertion is incorrect.  Instead
  of asserting we have to loop up and try again.
sys/kern/kern_timeout.c