From: ericm Date: Wed, 5 Aug 2009 22:08:09 +0000 (+0000) Subject: branch: HEAD X-Git-Tag: v1_9_240~23 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=83c101ca12f4ffb2afb0f2e8963633e29b12bdb7;p=fs%2Flustre-release.git branch: HEAD fix a case of recursive call loop. b=20235 r=rread r=wangdi --- diff --git a/lustre/ptlrpc/pack_generic.c b/lustre/ptlrpc/pack_generic.c index 690f4f3..cd4f6df 100644 --- a/lustre/ptlrpc/pack_generic.c +++ b/lustre/ptlrpc/pack_generic.c @@ -390,8 +390,8 @@ void *lustre_msg_buf_v2(struct lustre_msg_v2 *m, int n, int min_size) buflen = m->lm_buflens[n]; if (unlikely(buflen < min_size)) { CERROR("msg %p buffer[%d] size %d too small " - "(required %d, opc=%d)\n", - m, n, buflen, min_size, lustre_msg_get_opc(m)); + "(required %d, opc=%d)\n", m, n, buflen, min_size, + n == MSG_PTLRPC_BODY_OFF ? -1 : lustre_msg_get_opc(m)); return NULL; }