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)
commit575969a0dd3fe65c6556bcb8f87c42303326ea55
tree0db18fa173b20076e03b5b9c4be4c31c56baa438
parent5624a4e445e2ec27582984b068d7bf7f127cee10
blk-cgroup: Make 64bit per cpu stats safe on 32bit arch

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