mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 00:30:52 +07:00
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>
This commit is contained in:
parent
b61c27636f
commit
f0ed1b7cef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user