diff options
author | Alex Elder <[email protected]> | 2013-03-25 11:54:30 -0500 |
---|---|---|
committer | Sage Weil <[email protected]> | 2013-05-01 21:17:22 -0700 |
commit | 888334f966fab232fe9158c2c2f0a935e356b583 (patch) | |
tree | 59566142b9a177590c0d38eaaeb6edb7dd01fa8f /lib/mpi/mpi-bit.c | |
parent | 7e2766a1135544a2972d2767f3a41afd5f55067f (diff) |
libceph: initialize data fields on last msg put
When the last reference to a ceph message is dropped,
ceph_msg_last_put() is called to clean things up.
For "normal" messages (allocated via ceph_msg_new() rather than
being allocated from a memory pool) it's sufficient to just release
resources. But for a mempool-allocated message we actually have to
re-initialize the data fields in the message back to initial state
so they're ready to go in the event the message gets reused.
Some of this was already done; this fleshes it out so it's done
more completely.
This resolves:
http://tracker.ceph.com/issues/4540
Signed-off-by: Alex Elder <[email protected]>
Reviewed-by: Sage Weil <[email protected]>
Reviewed-by: Josh Durgin <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions