git: dsched_fq - Fix some issues, sprinkle some asserts
Alex Hornung
alexh at crater.dragonflybsd.org
Thu Apr 15 13:26:39 PDT 2010
commit 38f2331ec4848304a597729bf412df277e3c5f00
Author: Alex Hornung <ahornung at 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
More information about the Commits
mailing list