Skip to content

Commit f0ed1b7

Browse files
committed
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>
1 parent b61c276 commit f0ed1b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/ceph/messenger.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,6 +2352,7 @@ struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags,
23522352
if (!can_fail) {
23532353
pr_err("msg_new can't create type %d front %d\n", type,
23542354
front_len);
2355+
WARN_ON(1);
23552356
} else {
23562357
dout("msg_new can't create type %d front %d\n", type,
23572358
front_len);

0 commit comments

Comments
 (0)