Whamcloud - gitweb
LU-1282 lprocfs: fix multi-thread contention glitch
authorBobi Jam <bobijam@whamcloud.com>
Fri, 29 Jun 2012 07:33:04 +0000 (15:33 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 11 Jul 2012 23:44:43 +0000 (19:44 -0400)
commit560efa06be97651252caff4ba9bc2c014cf62ff9
tree52ba3f35600c3e8f97ad71f65040c147078554be
parent04a38ba7cda4e242850a47b13d4402a69e8dd921
LU-1282 lprocfs: fix multi-thread contention glitch

* Revert clear stats patch committed on 8c831cb8, it is not multi-
  thread safe.
* Should protect the change of lprocfs_stats::ls_biggest_alloc_num
* Add a LPROCFS_STATS_FLAG_IRQ_SAFE flag, when a stat is non-percpu
  stats with this flag, lprocfs_stats_lock() should disable irq.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I42f29e97ff75bf3817249940c8bb491af123d1d9
Reviewed-on: http://review.whamcloud.com/3240
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lprocfs_status.h
lustre/lvfs/lvfs_lib.c
lustre/obdclass/class_obd.c
lustre/obdclass/lprocfs_status.c