diff options
author | Sage Weil <sage@inktank.com> | 2012-07-09 14:22:34 -0700 |
---|---|---|
committer | Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com> | 2012-11-20 14:27:25 -0200 |
commit | 677e16bd876138a72907c7513eb6c6e7b4a829b4 (patch) | |
tree | 5d198577fc2bf8c2878de3b29d8e99aca734ef17 /include/linux | |
parent | cc41c26ec090608617897807060b0c7dabef0a13 (diff) |
libceph: initialize msgpool message types
commit d50b409fb8698571d8209e5adfe122e287e31290 upstream.
Initialize the type field for messages in a msgpool. The caller was doing
this for osd ops, but not for the reply messages.
Reported-by: Alex Elder <elder@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ceph/msgpool.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ceph/msgpool.h b/include/linux/ceph/msgpool.h index a362605f9368..09fa96b43436 100644 --- a/include/linux/ceph/msgpool.h +++ b/include/linux/ceph/msgpool.h @@ -11,10 +11,11 @@ struct ceph_msgpool { const char *name; mempool_t *pool; + int type; /* preallocated message type */ int front_len; /* preallocated payload size */ }; -extern int ceph_msgpool_init(struct ceph_msgpool *pool, +extern int ceph_msgpool_init(struct ceph_msgpool *pool, int type, int front_len, int size, bool blocking, const char *name); extern void ceph_msgpool_destroy(struct ceph_msgpool *pool); |