From: Tejun Heo Date: Wed, 9 Jan 2013 16:05:12 +0000 (-0800) Subject: blkcg: implement blkcg_policy->on/offline_pd_fn() and blkcg_gq->online X-Git-Tag: v3.9-rc1~44^2~12^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f427d909648aa592c9588d0f66b5b457752a0cd1;p=pandora-kernel.git blkcg: implement blkcg_policy->on/offline_pd_fn() and blkcg_gq->online Add two blkcg_policy methods, ->online_pd_fn() and ->offline_pd_fn(), which are invoked as the policy_data gets activated and deactivated while holding both blkcg and q locks. Also, add blkcg_gq->online bool, which is set and cleared as the blkcg_gq gets activated and deactivated. This flag also is toggled while holding both blkcg and q locks. These will be used to implement hierarchical stats. Signed-off-by: Tejun Heo Acked-by: Vivek Goyal --- Reading git-diff-tree failed