提交 f0ed1b7c 编写于 作者: S Sage Weil

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: NSage Weil <sage@newdream.net>
上级 b61c2763
......@@ -2352,6 +2352,7 @@ struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags,
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册