DragonFly BSD
DragonFly commits List (threaded) for 2012-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Fix race in callout_stop_sync()


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 20 Jan 2012 10:23:51 -0800 (PST)

commit 7881367cc47b64348df063a9c6962909d1f1eb71
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]