From: Sage Weil Date: Tue, 9 Aug 2011 22:05:07 +0000 (-0700) Subject: libceph: warn on msg allocation failures X-Git-Tag: v3.2-rc1~126^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0ed1b7cef1e801ef470efc501f9c663fe10cebd;p=profile%2Fivi%2Fkernel-x86-ivi.git libceph: warn on msg allocation failures Any non-masked msg allocation failure should generate a warning and stack trace to the console. All of these need to eventually be replaced by safe preallocation or msgpools. Signed-off-by: Sage Weil --- diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index 2de711a..f56aca30 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -2352,6 +2352,7 @@ out: if (!can_fail) { pr_err("msg_new can't create type %d front %d\n", type, front_len); + WARN_ON(1); } else { dout("msg_new can't create type %d front %d\n", type, front_len);