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

git: dsched_fq - Avoid int64 overflow on total_budget


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

commit 0746e1609bd535bbea4d3f6037080d32813e0265
Author: Alex Hornung <ahornung@gmail.com>
Date:   Fri Apr 9 21:59:39 2010 +0000

    dsched_fq - Avoid int64 overflow on total_budget
    
    * Avoid an int64 overflow when calculating the total disk budget by
      losing bits of precision if needed.
    
    * Note that this might not quite fix the issue yet, as there is one
      other place where the int64 overflow can happen, although it is less
      likely.
    
    * While here, make the rebalancing happen every 0.5s instead of every
      1s, effectively reducing the chance of int64 overflows.
    
    Reported-by: Antonio Huete (tuxillo@)

Summary of changes:
 sys/dsched/fq/dsched_fq_core.c |   32 ++++++++++++++++++++++++--------
 1 files changed, 24 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0746e1609bd535bbea4d3f6037080d32813e0265


-- 
DragonFly BSD source repository



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