Skip to content

Commit

Permalink
libceph: warn on msg allocation failures
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sage Weil committed Oct 25, 2011
1 parent b61c276 commit f0ed1b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0ed1b7

Please sign in to comment.