]> git.baikalelectronics.ru Git - kernel.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)
commitc37e3ed0529212ae9a1ae6248c8f3edc122ac9d2
tree0615a702afe3b1f58161a756ea6eb928d859bf11
parent367b5103eb25772ef496502e166f5da3ddb33b57
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