block: expose the statistics in blkio.time and blkio.sectors for the root cgroup
authorRicky Benitez <rickyb@google.com>
Mon, 5 Apr 2010 16:22:17 +0000 (18:22 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 5 Apr 2010 16:22:17 +0000 (18:22 +0200)
commita74b2adae06265b8cfa335d7d40d4a5abd11e977
tree13f3204faa4fc4bef6270bfaa269ea45474c39f1
parent144214537370b4f133a735446ebe86e90cfb2501
block: expose the statistics in blkio.time and blkio.sectors for the root cgroup

Currently, the io statistics for the root cgroup are maintained, but
they are not shown because the device information is not available at
the point that the root blkio cgroup is created. This patch updates
the device information when the statistics are updated so that the
statistics become visible.

Signed-off-by: Ricky Benitez <rickyb@google.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c