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

git: kernel - Use atomic ops for devstat's ds->busy_count field.


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 Jan 2011 11:15:14 -0800 (PST)

commit 8bd60bc26686ba32daa68a8196296ecbc2d048a3
Author: Matthew Dillon <dillon@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@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



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