From: Vivek Goyal Date: Thu, 19 May 2011 19:38:28 +0000 (-0400) Subject: blk-throttle: Make dispatch stats per cpu X-Git-Tag: v3.0-rc1~163^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5624a4e445e2ec27582984b068d7bf7f127cee10;p=pandora-kernel.git blk-throttle: Make dispatch stats per cpu Currently we take blkg_stat lock for even updating the stats. So even if a group has no throttling rules (common case for root group), we end up taking blkg_lock, for updating the stats. Make dispatch stats per cpu so that these can be updated without taking blkg lock. If cpu goes offline, these stats simply disappear. No protection has been provided for that yet. Do we really need anything for that? Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed