• Alex Elder's avatar
    libceph: use kernel_sendpage() for sending zeroes · 31739139
    Alex Elder authored
    If a message queued for send gets revoked, zeroes are sent over the
    wire instead of any unsent data.  This is done by constructing a
    message and passing it to kernel_sendmsg() via ceph_tcp_sendmsg().
    
    Since we are already working with a page in this case we can use
    the sendpage interface instead.  Create a new ceph_tcp_sendpage()
    helper that sets up flags to match the way ceph_tcp_sendmsg()
    does now.
    Signed-off-by: default avatarAlex Elder <elder@dreamhost.com>
    Reviewed-by: default avatarSage Weil <sage@newdream.net>
    31739139
messenger.c 63.8 KB