ceph: set osd request message front length correctly
authorSage Weil <sage@newdream.net>
Mon, 1 Mar 2010 23:26:41 +0000 (15:26 -0800)
committerSage Weil <sage@newdream.net>
Mon, 1 Mar 2010 23:26:41 +0000 (15:26 -0800)
commit6f863e712d4114e8ae2f02de64ebeac0546ebaa0
tree0a61ce00922aa3670f53f44f7ae5ec2ad19c6c90
parent3ca02ef96e119d36bc1752baeae7dd0c59c2f325
ceph: set osd request message front length correctly

We didn't set the front length correctly.  When messages used
the message pool we ended up with the conservative max (4 KB), and
the rest of the time the slightly less conservative estimate.  Even
though the OSD ignores the extra data, set it to the right value to avoid
sending extra data over the network.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/osd_client.c