From: nikita Date: Mon, 23 Oct 2006 18:33:30 +0000 (+0000) Subject: ldlm: ldlm_lock_debug(): fix it so it prints something (from Andreas via Oleg). X-Git-Tag: v1_8_0_110~486^2~372 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=54447ce407002637261efb262244c3777765ebec;p=fs%2Flustre-release.git ldlm: ldlm_lock_debug(): fix it so it prints something (from Andreas via Oleg). --- diff --git a/lustre/ldlm/ldlm_lock.c b/lustre/ldlm/ldlm_lock.c index c70d72c..98305d0 100644 --- a/lustre/ldlm/ldlm_lock.c +++ b/lustre/ldlm/ldlm_lock.c @@ -1417,10 +1417,19 @@ ldlm_lock_debug(cfs_debug_limit_state_t *cdls, char *fmt, ...) { va_list args; + cfs_debug_limit_state_t savecdls; + if (cdls) + savecdls = *cdls; va_start(args, fmt); cdebug_va(cdls, level, file, func, line, fmt, args); va_end(args); + /* Don't ratelimit on the above, or we never print the below. + This isn't a complete solution, because we still print the + ratelimit warning twice. But that's better than never + printing the info below. */ + if (cdls) + *cdls = savecdls; if (lock->l_resource == NULL) { cdebug(cdls, level, file, func, line,