blk-cgroup: Make 64bit per cpu stats safe on 32bit arch
authorVivek Goyal <vgoyal@redhat.com>
Thu, 19 May 2011 19:38:29 +0000 (15:38 -0400)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 20 May 2011 18:34:53 +0000 (20:34 +0200)
Some of the stats are 64bit and updation will be non atomic on 32bit
architecture. Use sequence counters on 32bit arch to make reading
of stats safe.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-cgroup.c
block/blk-cgroup.h

Simple merge
Simple merge