From: Tejun Heo Date: Wed, 9 Jan 2013 16:05:13 +0000 (-0800) Subject: blkcg: make blkcg_print_blkgs() grab q locks instead of blkcg lock X-Git-Tag: v3.9-rc1~44^2~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=810ecfa765f8be20c8d9c468885b3403a2232d2f;p=pandora-kernel.git 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 Acked-by: Vivek Goyal --- Reading git-diff-tree failed