dsched_fq - Avoid int64 overflow on total_budget
authorAlex Hornung <ahornung@gmail.com>
Fri, 9 Apr 2010 21:59:39 +0000 (21:59 +0000)
committerAlex Hornung <ahornung@gmail.com>
Thu, 15 Apr 2010 20:24:50 +0000 (20:24 +0000)
commit0746e1609bd535bbea4d3f6037080d32813e0265
tree9014d396d84230bc6c27ea1fcc50b63c8324b645
parent38f2331ec4848304a597729bf412df277e3c5f00
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@)
sys/dsched/fq/dsched_fq_core.c