ceph: only set message data pointers if non-empty
authorAlex Elder <elder@inktank.com>
Tue, 5 Mar 2013 04:29:57 +0000 (22:29 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:41 +0000 (21:16 -0700)
commitebf18f47093e968105767eed4a0aa155e86b224e
tree90122481017a894850e46b8c86987bd31548fddc
parent27fa83852ba275361eaa1a1283cf6704fa8191a6
ceph: only set message data pointers if non-empty

Change it so we only assign outgoing data information for messages
if there is outgoing data to send.

This then allows us to add a few more (currently commented-out)
assertions.

This is related to:
    http://tracker.ceph.com/issues/4284

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
fs/ceph/mds_client.c
net/ceph/messenger.c
net/ceph/osd_client.c