]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Staging: ramzswap: Use lock for 64-bit stats
authorNitin Gupta <ngupta@vflare.org>
Thu, 28 Jan 2010 15:43:37 +0000 (21:13 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:53 +0000 (16:42 -0800)
commit6a90772886d5d6812f9b2775d3caa0dc002754e0
tree0615a702afe3b1f58161a756ea6eb928d859bf11
parent1994130e4f881696aad562429fbbafeb73418e5a
Staging: ramzswap: Use lock for 64-bit stats

64-bit stats corruption was observed when ramzswap was
used on SMP systems. To prevent this, use separate spinlock
to protect these stats.

Also, replace stat_*() with rzs_stat*() to avoid possible
conflict with core kernel code.

Eventually, these will be converted to per-cpu counters
if this driver finds use on large scale systems and this
locking is found to affect scalability.

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ramzswap/ramzswap_drv.c
drivers/staging/ramzswap/ramzswap_drv.h
drivers/staging/ramzswap/ramzswap_ioctl.h