]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: no outbound zero data
authorAlex Elder <elder@inktank.com>
Tue, 12 Mar 2013 04:34:22 +0000 (23:34 -0500)
committerAlex Elder <elder@inktank.com>
Fri, 29 Mar 2013 19:26:11 +0000 (14:26 -0500)
commitae0e5a0140333fca23d3c2edec99033d921f4197
tree46cf11671461480e3f06c88b9d079e754d68a8c2
parentde06534dfef819cb1fc04147c0d8370502c52884
libceph: no outbound zero data

There is handling in write_partial_message_data() for the case where
only the length of--and no other information about--the data to be
sent has been specified.  It uses the zero page as the source of
data to send in this case.

This case doesn't occur.  All message senders set up a page array,
pagelist, or bio describing the data to be sent.  So eliminate the
block of code that handles this (but check and issue a warning for
now, just in case it happens for some reason).

This resolves:
    http://tracker.ceph.com/issues/4426

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c