git: kernel - Fix race in recent callout work

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Nov 26 13:13:38 PST 2014


commit c9fc1062079388ef9b4421f073d9da226164579a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Nov 26 13:12:50 2014 -0800

    kernel - Fix race in recent callout work
    
    * CALLOUT_ARMED can only be cleared if the callout is not PENDING and also
      if there are no IPIs pending.  The last bit wasn't being checked properly,
      potentially leading to MP races.

Summary of changes:
 sys/kern/kern_timeout.c | 37 +++++++++++++++++++++++++++++++++----
 1 file changed, 33 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c9fc1062079388ef9b4421f073d9da226164579a


-- 
DragonFly BSD source repository



More information about the Commits mailing list