diff options
author | Tejun Heo <tj@kernel.org> | 2013-01-09 17:05:13 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-01-09 17:05:13 +0100 |
commit | 810ecfa765f8be20c8d9c468885b3403a2232d2f (patch) | |
tree | 0c9173defed8de28cf43d972b8e36b48fbcc6f24 /virt | |
parent | block: RCU free request_queue (diff) | |
download | linux-810ecfa765f8be20c8d9c468885b3403a2232d2f.tar.xz linux-810ecfa765f8be20c8d9c468885b3403a2232d2f.zip |
blkcg: make blkcg_print_blkgs() grab q locks instead of blkcg lock
Instead of holding blkcg->lock while walking ->blkg_list and executing
prfill(), RCU walk ->blkg_list and hold the blkg's queue lock while
executing prfill(). This makes prfill() implementations easier as
stats are mostly protected by queue lock.
This will be used to implement hierarchical stats.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions