git: kernel - Use atomic ops for devstat's ds->busy_count field.
    Matthew Dillon 
    dillon at crater.dragonflybsd.org
       
    Wed Jan 19 11:16:37 PST 2011
    
    
  
commit 8bd60bc26686ba32daa68a8196296ecbc2d048a3
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jan 19 11:12:47 2011 -0800
    kernel - Use atomic ops for devstat's ds->busy_count field.
    
    * Use atomic ops to manage the busy_count field as these functions can
      be called MP.
    
    * This should avoid negative busy_count transitions due to MP races on the
      field.
    
    Reported-by: Peter Avalos <peter at theshell.com>
Summary of changes:
 sys/kern/subr_devstat.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8bd60bc26686ba32daa68a8196296ecbc2d048a3
-- 
DragonFly BSD source repository
    
    
More information about the Commits
mailing list