block: Update to io-controller stats
authorDivyesh Shah <dpshah@google.com>
Tue, 13 Apr 2010 17:59:17 +0000 (19:59 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 13 Apr 2010 17:59:17 +0000 (19:59 +0200)
commita11cdaa7af56423a921a8bdad8f5a5f4ddca918a
tree45309d760ab80347d4ad5a2cd249c988a507c636
parentda69da184c06f365b335a0e013dc6360a82abe85
block: Update to io-controller stats

Changelog from v1:
o Call blkiocg_update_idle_time_stats() at cfq_rq_enqueued() instead of at
  dispatch time.

Changelog from original patchset: (in response to Vivek Goyal's comments)
o group blkiocg_update_blkio_group_dequeue_stats() with other DEBUG functions
o rename blkiocg_update_set_active_queue_stats() to
  blkiocg_update_avg_queue_size_stats()
o s/request/io/ in blkiocg_update_request_add_stats() and
  blkiocg_update_request_remove_stats()
o Call cfq_del_timer() at request dispatch() instead of
  blkiocg_update_idle_time_stats()

Signed-off-by: Divyesh Shah<dpshah@google.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-cgroup.c
block/blk-cgroup.h
block/cfq-iosched.c