]> git.karo-electronics.de Git - linux-beck.git/commit
blkcg: remove blkio_group->stats_lock
authorTejun Heo <tj@kernel.org>
Thu, 8 Mar 2012 18:54:00 +0000 (10:54 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Mar 2012 11:45:37 +0000 (12:45 +0100)
commitedf1b879e308d37b5b7c414476ab39f79650a253
treefec2895e806eb357ba9e9ed960f8c247042d5383
parentc4c76a05382c7d05e0b911daa58a827399e9ba1a
blkcg: remove blkio_group->stats_lock

With recent plug merge updates, all non-percpu stat updates happen
under queue_lock making stats_lock unnecessary to synchronize stat
updates.  The only synchronization necessary is stat reading, which
can be done using u64_stats_sync instead.

This patch removes blkio_group->stats_lock and adds
blkio_group_stats->syncp for reader synchronization.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/blk-cgroup.h