projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b61c276
)
libceph: warn on msg allocation failures
author
Sage Weil
<sage@newdream.net>
Tue, 9 Aug 2011 22:05:07 +0000
(15:05 -0700)
committer
Sage 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
patch
|
blob
|
history
diff --git
a/net/ceph/messenger.c
b/net/ceph/messenger.c
index 2de711a0c0372fc776cc8a8ba4986144ac0548f8..f56aca30261776cd630501b79d40f78675d649ec 100644
(file)
--- 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);