Whamcloud - gitweb
LU-744 obdclass: revise percpu stats of lprocfs_stats
authorJinshan Xiong <jinshan.xiong@intel.com>
Mon, 5 Nov 2012 21:18:52 +0000 (13:18 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 14 Dec 2012 21:25:40 +0000 (16:25 -0500)
commit9219ce0081c665ec42a83ee10fb44cf1ace5e932
tree52d3d7c7627b04ed68968163abc3e51da885cea8
parent5cae09a2409dcd396a1ee7be1eca7d3bbf77365e
LU-744 obdclass: revise percpu stats of lprocfs_stats

Atomic doesn't scale well and there is an atomic counter to remember
if updating stats is on going. This will introduce performance
problem if the percpu stats is used in a highly contended code.

I'll remove that atomic counter in this patch, this is okay as percpu
counter is not accurate essentially.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I5c7a094b78ab53798266d48d56f3a16e7c7d436f
Reviewed-on: http://review.whamcloud.com/4472
Tested-by: Hudson
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
lustre/include/lprocfs_status.h
lustre/lvfs/lvfs_lib.c
lustre/lvfs/lvfs_linux.c
lustre/obdclass/lprocfs_status.c