Browse Source

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 <sage@newdream.net>
Sage Weil 14 years ago
parent
commit
f0ed1b7cef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      net/ceph/messenger.c

+ 1 - 0
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);