aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-08-09 18:05:07 -0400
committerSage Weil <sage@newdream.net>2011-10-25 19:10:16 -0400
commitf0ed1b7cef1e801ef470efc501f9c663fe10cebd (patch)
tree93407439807c8c4324da108bcae39809f3584c2c /net/ceph
parentb61c27636fffbaf1980e675282777b9467254a40 (diff)
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>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/messenger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index 2de711a0c037..f56aca302617 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -2352,6 +2352,7 @@ out:
2352 if (!can_fail) { 2352 if (!can_fail) {
2353 pr_err("msg_new can't create type %d front %d\n", type, 2353 pr_err("msg_new can't create type %d front %d\n", type,
2354 front_len); 2354 front_len);
2355 WARN_ON(1);
2355 } else { 2356 } else {
2356 dout("msg_new can't create type %d front %d\n", type, 2357 dout("msg_new can't create type %d front %d\n", type,
2357 front_len); 2358 front_len);