From: Alex Elder Date: Mon, 25 Mar 2013 16:54:30 +0000 (-0500) Subject: libceph: initialize data fields on last msg put X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~176 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=888334f966fab232fe9158c2c2f0a935e356b583;p=pandora-kernel.git 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 Reviewed-by: Sage Weil Reviewed-by: Josh Durgin --- Reading git-diff-tree failed