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

git: dsched_fq - Fix some issues, sprinkle some asserts


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Apr 2010 13:25:36 -0700 (PDT)

commit 38f2331ec4848304a597729bf412df277e3c5f00
Author: Alex Hornung <ahornung@gmail.com>
Date:   Fri Apr 9 17:52:23 2010 +0000

    dsched_fq - Fix some issues, sprinkle some asserts
    
    * Add some strategic KKASSERT to catch negative values where they aren't
      allowed.
    
    * Avoid certain race conditions by using a local variable instead of
      using the generally accessible one (budget vs dpriv->budgetpb). Only
      set the final value once we are ready.

Summary of changes:
 sys/dsched/fq/dsched_fq_core.c    |   15 +++++++++------
 sys/dsched/fq/dsched_fq_diskops.c |    1 +
 2 files changed, 10 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/38f2331ec4848304a597729bf412df277e3c5f00


-- 
DragonFly BSD source repository



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