diff options
author | Sage Weil <sage@newdream.net> | 2011-08-09 15:03:46 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-10-25 16:10:15 -0700 |
commit | b61c27636fffbaf1980e675282777b9467254a40 (patch) | |
tree | bd78cfefda4beb7e3de5fe97dd36fed3dbfa91c1 /include/linux | |
parent | f6a2f5be07463ef532b9f4e3cb9e42ab9df85832 (diff) | |
download | linux-stable-b61c27636fffbaf1980e675282777b9467254a40.tar.gz linux-stable-b61c27636fffbaf1980e675282777b9467254a40.tar.bz2 linux-stable-b61c27636fffbaf1980e675282777b9467254a40.zip |
libceph: don't complain on msgpool alloc failures
The pool allocation failures are masked by the pool; there is no need to
spam the console about them. (That's the whole point of having the pool
in the first place.)
Mark msg allocations whose failure is safely handled as such.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ceph/messenger.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index d7adf151d335..bbd4a4bb2c6b 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h @@ -238,7 +238,8 @@ extern void ceph_con_keepalive(struct ceph_connection *con); extern struct ceph_connection *ceph_con_get(struct ceph_connection *con); extern void ceph_con_put(struct ceph_connection *con); -extern struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags); +extern struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags, + bool can_fail); extern void ceph_msg_kfree(struct ceph_msg *m); |