From: Tejun Heo Date: Fri, 13 Apr 2012 20:11:35 +0000 (-0700) Subject: blkcg: shoot down blkgs if all policies are deactivated X-Git-Tag: v3.5-rc1~42^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d18b008daf46bcd82b8ae250aae0785f9714096;p=pandora-kernel.git blkcg: shoot down blkgs if all policies are deactivated There's no reason to keep blkgs around if no policy is activated for the queue. This patch moves queue locking out of blkg_destroy_all() and call it from blkg_deactivate_policy() on deactivation of the last policy on the queue. This change was suggested by Vivek. Signed-off-by: Tejun Heo Cc: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed