From 910f68d04916fece5b54137bf78535f5306289f8 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Tue, 7 Sep 2010 14:08:25 +0400 Subject: [PATCH] b=23289 disable RS_DEBUG by default Disable RS_DEBUG by default. o=zhen.liang i=andreas.dilger i=Mikhail.Pershin --- lustre/include/lustre_net.h | 4 ++-- lustre/ptlrpc/ptlrpc_module.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lustre/include/lustre_net.h b/lustre/include/lustre_net.h index 8df763a..a85c8c3 100644 --- a/lustre/include/lustre_net.h +++ b/lustre/include/lustre_net.h @@ -316,9 +316,9 @@ struct ptlrpc_cb_id { void *cbid_arg; /* additional arg */ }; -/** Maximum number of locks to fit into reply state */ +/** Maximum number of locks to fit into reply state */ #define RS_MAX_LOCKS 8 -#define RS_DEBUG 1 +#define RS_DEBUG 0 /** * Structure to define reply state on the server diff --git a/lustre/ptlrpc/ptlrpc_module.c b/lustre/ptlrpc/ptlrpc_module.c index 84b9b0f..f1be6c9 100644 --- a/lustre/ptlrpc/ptlrpc_module.c +++ b/lustre/ptlrpc/ptlrpc_module.c @@ -51,7 +51,9 @@ #include "ptlrpc_internal.h" extern cfs_spinlock_t ptlrpc_last_xid_lock; +#if RS_DEBUG extern cfs_spinlock_t ptlrpc_rs_debug_lock; +#endif extern cfs_spinlock_t ptlrpc_all_services_lock; extern cfs_semaphore_t pinger_sem; extern cfs_semaphore_t ptlrpcd_sem; @@ -62,7 +64,9 @@ __init int ptlrpc_init(void) ENTRY; lustre_assert_wire_constants(); +#if RS_DEBUG cfs_spin_lock_init(&ptlrpc_rs_debug_lock); +#endif cfs_spin_lock_init(&ptlrpc_all_services_lock); cfs_init_mutex(&pinger_sem); cfs_init_mutex(&ptlrpcd_sem); -- 1.8.3.1