From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751593AbbGKSA7 (ORCPT ); Sat, 11 Jul 2015 14:00:59 -0400 Received: from mail-yk0-f172.google.com ([209.85.160.172]:36566 "EHLO mail-yk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909AbbGKSA6 (ORCPT ); Sat, 11 Jul 2015 14:00:58 -0400 From: Tejun Heo To: axboe@kernel.dk Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, vgoyal@redhat.com, avanzini.arianna@gmail.com Subject: [PATCHSET v3 block/for-4.3] blkcg: blkcg policy methods and data handling cleanup Date: Sat, 11 Jul 2015 14:00:43 -0400 Message-Id: <1436637654-28110-1-git-send-email-tj@kernel.org> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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@kernel.org [1] http://lkml.kernel.org/g/1436281823-1947-1-git-send-email-tj@kernel.org [2] http://lkml.kernel.org/g/1436283361-3889-1-git-send-email-tj@kernel.org