Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Acked-by: Vivek Goyal <[email protected]>
- Loading branch information