commit | 72a9826b45c0d126f47c1acc8444c5d9ee478fcd | [log] [tgz] |
---|---|---|
author | Seth Jennings <sjenning@linux.vnet.ibm.com> | Thu Feb 09 12:25:02 2012 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Feb 09 10:47:58 2012 -0800 |
tree | f4ac7c1bb888dd39cff9889b57b96b4c3e88d3ba | |
parent | 8f9cde23c3f7b74dfad617d2ffbbb5c2ba55e1ee [diff] |
staging: zcache: fix serialization bug in zv stats In a multithreaded workload, the zv_curr_dist_counts and zv_cumul_dist_counts statistics are being corrupted because the increments and decrements in zv_create and zv_free are not atomic. This patch converts these statistics and their corresponding increments/decrements/reads to atomic operations. Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>