summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2013-09-13 21:42:24 (GMT)
committerMike Snitzer <snitzer@redhat.com>2013-09-18 18:41:06 (GMT)
commitbbf3f8cbdc139860a14c4fc2bb25432427045aaa (patch)
tree49c29342acc975d30d5d7399c9ba2ceacd718a01 /ipc
parentcc9d3c382bc1674884c2e5e468d51230a9503dee (diff)
downloadlinux-bbf3f8cbdc139860a14c4fc2bb25432427045aaa.tar.xz
dm stats: fix possible counter corruption on 32-bit systems
There was a deliberate race condition in dm_stat_for_entry() to avoid the overhead of disabling and enabling interrupts. The race could result in some events not being counted on 64-bit architectures. However, on 32-bit architectures, operations on long long variables are not atomic, so the race condition could cause the counter to jump by 2^32. Such jumps could be disruptive, so we need to do proper locking on 32-bit architectures. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Cc: Alasdair G. Kergon <agk@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions