git: DragonFly_RELEASE_4_4 kernel - Reduce lwp_signotify() latency

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Dec 21 21:48:06 PST 2015


commit b388cdf860767e268b0cf10147ad774f96b4a843
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Dec 19 13:05:55 2015 -0800

    kernel - Reduce lwp_signotify() latency
    
    * lwp_signotify() was not issuing an IPI to another cpu if the target
      thread was in a run state, preventing that thread from seeing the
      signal for roughly one scheduler tick.
    
    * This interferes with programs like qemu which depend on signaling
      between threads for the timer tick and numerous other things,
      causing timers to behave poorly.
    
    * Fix by issuing the necessary IPI.
    
    Reported-by: Imre Vadasz
    Testing-by: Imre Vadasz (+ a bug fix to the original patch)

Summary of changes:
 sys/kern/kern_sig.c | 30 +++++++++++++++++++++---------
 1 file changed, 21 insertions(+), 9 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list