]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libceph: warn on msg allocation failures
authorSage Weil <sage@newdream.net>
Tue, 9 Aug 2011 22:05:07 +0000 (15:05 -0700)
committerSage Weil <sage@newdream.net>
Tue, 25 Oct 2011 23:10:16 +0000 (16:10 -0700)
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>
net/ceph/messenger.c

index 2de711a0c0372fc776cc8a8ba4986144ac0548f8..f56aca30261776cd630501b79d40f78675d649ec 100644 (file)
@@ -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);