git: kernel - Fix race in callout_stop_sync()

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Jan 20 10:23:51 PST 2012


commit 7881367cc47b64348df063a9c6962909d1f1eb71
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Jan 20 10:23:06 2012 -0800

    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.

Summary of changes:
 sys/kern/kern_timeout.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7881367cc47b64348df063a9c6962909d1f1eb71


-- 
DragonFly BSD source repository





More information about the Commits mailing list