Whamcloud - gitweb
branch: HEAD
authorericm <ericm>
Wed, 5 Aug 2009 22:08:09 +0000 (22:08 +0000)
committerericm <ericm>
Wed, 5 Aug 2009 22:08:09 +0000 (22:08 +0000)
fix a case of recursive call loop.
b=20235
r=rread
r=wangdi

lustre/ptlrpc/pack_generic.c

index 690f4f3..cd4f6df 100644 (file)
@@ -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;
         }