From: Tejun Heo Date: Tue, 14 May 2013 20:52:37 +0000 (-0700) Subject: blk-throttle: make blk_throtl_drain() ready for hierarchy X-Git-Tag: v3.11-rc1~21^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a12f0dcdad1ba7c0e53bbff8e5f6d0ee7a29882;p=pandora-kernel.git blk-throttle: make blk_throtl_drain() ready for hierarchy The current blk_throtl_drain() assumes that all active throtl_grps are queued on throtl_data->service_queue, which won't be true once hierarchy support is implemented. This patch makes blk_throtl_drain() perform post-order walk of the blkg hierarchy draining each associated throtl_grp, which guarantees that all bios will eventually be pushed to the top-level service_queue in throtl_data. Signed-off-by: Tejun Heo Acked-by: Vivek Goyal --- Reading git-diff-tree failed