dsched_fq - correct disk busy% calculation
authorAlex Hornung <ahornung@gmail.com>
Tue, 20 Apr 2010 22:31:12 +0000 (22:31 +0000)
committerAlex Hornung <ahornung@gmail.com>
Tue, 20 Apr 2010 22:31:12 +0000 (22:31 +0000)
commit654a51ea6cb528b9b2bb7fe3731b71cd689fab94
treeae8c7d5ea6d8c29b843d90cb8089dc0f04d08a2e
parent51a4bb9f7d116a7dda9cbe5ca9beef5918ab0376
dsched_fq - correct disk busy% calculation

* Previously old_tv was static, causing problems when several disks had
  the fq policy enabled, as the start time of the interval was taken
  from some other disk.

* Avoid this issue by keeping the information in diskctx, where it
  belongs.
sys/dsched/fq/dsched_fq.h
sys/dsched/fq/dsched_fq_core.c