Whamcloud - gitweb
LU-969 debug: reduce stack usage
authorHongchao Zhang <hongchao.zhang@whamcloud.com>
Mon, 12 Mar 2012 08:11:47 +0000 (16:11 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 11 May 2012 04:54:56 +0000 (00:54 -0400)
commitb9cbe3616b6e0b44c7835b1aec65befb85f848f9
treea2c5649b3ad6ec635b753c9d527f9c5b4c515218
parent1702f156bf61210a937f40ae5b8e9d8832a3e59a
LU-969 debug: reduce stack usage

1, libcfs_debug_vmsg2 to accept libcfs_debug_msg_data struture
   to replace SUBSYSTEM, __FILE__, __FUNCTION__, __LINE__ and
   cdls on the stack

2, CDEBUG, DEBUG_CAPA use static libcfs_debug_msg_data

3, remove the local variable in RETURN/GOTO/__CHECK_STACK

4, reduce stack in recovery thread by moving lu_env,
   ptlrpc_thread to heap.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Signed-off-by: Hongchao Zhang <hongchao.zhang@whamcloud.com>
Signed-off-by: Bob Glossman <bogl@whamcloud.com>
Change-Id: I75fe53027f56e27255b5f558e8fd57c7db833648
Reviewed-on: http://review.whamcloud.com/2668
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
30 files changed:
libcfs/include/libcfs/darwin/libcfs.h
libcfs/include/libcfs/libcfs_debug.h
libcfs/include/libcfs/libcfs_private.h
libcfs/include/libcfs/linux/libcfs.h
libcfs/include/libcfs/posix/libcfs.h
libcfs/include/libcfs/winnt/libcfs.h
libcfs/libcfs/darwin/darwin-debug.c
libcfs/libcfs/debug.c
libcfs/libcfs/linux/linux-debug.c
libcfs/libcfs/linux/linux-tracefile.c
libcfs/libcfs/module.c
libcfs/libcfs/posix/posix-debug.c
libcfs/libcfs/tracefile.c
libcfs/libcfs/tracefile.h
libcfs/libcfs/user-prim.c
libcfs/libcfs/winnt/winnt-debug.c
lustre/fid/fid_request.c
lustre/include/cl_object.h
lustre/include/lu_object.h
lustre/include/lustre_capa.h
lustre/include/lustre_dlm.h
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_lockd.c
lustre/lmv/lmv_obd.c
lustre/obdclass/capa.c
lustre/obdclass/lu_object.c
lustre/ptlrpc/llog_server.c
lustre/ptlrpc/pack_generic.c