dsched_fq - Fix some issues, sprinkle some asserts
authorAlex Hornung <ahornung@gmail.com>
Fri, 9 Apr 2010 17:52:23 +0000 (17:52 +0000)
committerAlex Hornung <ahornung@gmail.com>
Thu, 15 Apr 2010 20:24:50 +0000 (20:24 +0000)
commit38f2331ec4848304a597729bf412df277e3c5f00
treee3f666d012df3f4ad4fe8cc514a04f1a64474d79
parente6c2b48a4101086920afe26b80d260372f4f5a77
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.
sys/dsched/fq/dsched_fq_core.c
sys/dsched/fq/dsched_fq_diskops.c