Whamcloud - gitweb
LU-969 debug: reduce stack usage
authorOleg Drokin <green@whamcloud.com>
Mon, 13 Aug 2012 17:37:56 +0000 (13:37 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 15 Aug 2012 12:21:12 +0000 (08:21 -0400)
commit2d77b000a3e8b2e5cd3a07face12b4b3de78ce49
tree43b7f27f4f487636d43f87cab53cd4db2f6ebfc1
parentc46c38923c10ff09382cce921f0f20e5e6b2c8cb
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.

Updated patch to include all 2.3 fixes. (lu1436 and 1408)

Change-Id: I42437a35d428546beadf656602ede9c12c8bd2fd
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/3623
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.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