Whamcloud - gitweb
LU-3270 statahead: use dcache-like interface for sa entry 64/9664/11
authorLai Siyao <lai.siyao@intel.com>
Thu, 16 Oct 2014 18:16:18 +0000 (14:16 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 3 Nov 2014 04:46:08 +0000 (04:46 +0000)
commit99d96c8e428754927d62069d129b2464b3b30e61
tree1e00882d7cf25e2a7ef19cb2a09b028711588e1a
parent83f04354ff68a14d7492e35a9576c91492a1206c
LU-3270 statahead: use dcache-like interface for sa entry

Rename ll_sa_entry to sa_entry, and manage sa_entry cache with
dcache-like interfaces.

sa_entry is not needed to be refcounted, because only scanner
can free it, so after it's put in stat list, statahead thread
shouldn't access it any longer.

ll_statahead_interpret() doesn't need to take sai refcount,
because statahead thread will wait for all inflight RPC to
finish.

Signed-off-by: Lai Siyao <lai.siyao@intel.com>
Change-Id: Ibd55227f4c0710139bd039a4e7232dc1cb5041be
Reviewed-on: http://review.whamcloud.com/9664
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd.h
lustre/llite/llite_internal.h
lustre/llite/statahead.c