From: Vivek Goyal Date: Tue, 25 Oct 2011 13:48:12 +0000 (+0200) Subject: blk-throttle: Take blkcg->lock while traversing blkcg->policy_list X-Git-Tag: v3.2-rc1~49^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a38eb630fa224d6fba8c14a4063174bc5e0f63bb;p=pandora-kernel.git blk-throttle: Take blkcg->lock while traversing blkcg->policy_list blkcg->policy_list is protected by blkcg->lock. Its not rcu protected list. So even for readers, they need to take blkcg->lock. There are few functions which were reading the list without taking lock. Fix it. Signed-off-by: Vivek Goyal Acked-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed