[PATCHSET v3 block/for-4.3] blkcg: blkcg policy methods and data handling cleanup

From: Tejun Heo
Date: Sat Jul 11 2015 - 14:01:03 EST


This is v3 of blkcg_policy methods cleanup patchset. Changes from the
last take [L] are

* Rebased on top of block/for-linus.

* 0003-blkcg-remove-unnecessary-blkcg_root-handling-from-cs.patch and
0004-blkcg-restructure-blkg_policy_data-allocation-in-blk.patch
added. These are follow-up cleanups for the blkcg_policy_data
handling fixes which went into block/for-linus.

* 0010-blkcg-cosmetic-updates-about-blkcg_policy_data.patch and
0011-blkcg-replace-blkcg_policy-cpd_size-with-cpd_alloc-f.patch
added so that blkcg_policy_data handling is consistent with
blkg_policy_data handling.

This patchset contains assorted cleanups for blkcg_policy methods and
blk[c]g_policy_data handling.

* alloc/free added for blkg_policy_data. exit dropped.

* alloc/free added for blkcg_policy_data.

* blk-throttle's async percpu allocation is replaced with direct
allocation.

* all methods now take blk[c]g_policy_data instead of blkcg_gq or
blkcg.

This patchset contains the following 11 patches.

0001-blkcg-remove-unnecessary-request_list-blkg-NULL-test.patch
0002-blkcg-use-blkg_free-in-blkcg_init_queue-failure-path.patch
0003-blkcg-remove-unnecessary-blkcg_root-handling-from-cs.patch
0004-blkcg-restructure-blkg_policy_data-allocation-in-blk.patch
0005-blkcg-make-blkcg_activate_policy-allow-NULL-pd_init_.patch
0006-blkcg-replace-blkcg_policy-pd_size-with-pd_alloc-fre.patch
0007-blk-throttle-remove-asynchrnous-percpu-stats-allocat.patch
0008-blk-throttle-clean-up-blkg_policy_data-alloc-init-ex.patch
0009-blkcg-make-blkcg_policy-methods-take-a-pointer-to-bl.patch
0010-blkcg-cosmetic-updates-about-blkcg_policy_data.patch
0011-blkcg-replace-blkcg_policy-cpd_size-with-cpd_alloc-f.patch

0001-0005 are misc cleanups. 0006-0008 add alloc/free methods and
remove blk-throttle's async percpu allocation mechanism. 0009 makes
all methods take blkcg_policy_data. 0010-0011 apply similar cleanups
to blkcg_policy_data handling.

This patchset is also available in the following git branch.

git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-blkcg-methods-cleanup

and is on top of

block/for-linus 06b285bd1125 ("blkcg: fix blkcg_policy_data allocation bug")
+ [1] [PATCHSET block/for-4.3] writeback: cgroup writeback updates
+ [2] [PATCHSET v2 block/for-4.3] block, cgroup: make cfq charge async IOs to the appropriate blkcgs

diffstat follows, thanks.

block/blk-cgroup.c | 171 +++++++++++++++++++-------------------------
block/blk-throttle.c | 173 +++++++++++++--------------------------------
block/cfq-iosched.c | 68 +++++++++++++----
include/linux/blk-cgroup.h | 65 ++++++++--------
4 files changed, 214 insertions(+), 263 deletions(-)

--
tejun

[L] http://lkml.kernel.org/g/1436284293-4666-1-git-send-email-tj@xxxxxxxxxx
[1] http://lkml.kernel.org/g/1436281823-1947-1-git-send-email-tj@xxxxxxxxxx
[2] http://lkml.kernel.org/g/1436283361-3889-1-git-send-email-tj@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/