aboutsummaryrefslogtreecommitdiff
path: root/fs/ceph/mon_client.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-10-09 16:36:34 -0700
committerSage Weil <sage@newdream.net>2009-10-09 16:39:27 -0700
commit13e38c8ae771d73bf6d1f0f98e35f99c0f0d48ff (patch)
treecdc48759a7edc26e34b00cc0ddffc6ae58bafaf4 /fs/ceph/mon_client.c
parent266673db423e6ab247170d6c6d72ec36e530a911 (diff)
ceph: update to mon client protocol v15
The mon request headers now include session_mon information that must be properly initialized. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mon_client.c')
-rw-r--r--fs/ceph/mon_client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ceph/mon_client.c b/fs/ceph/mon_client.c
index 9c34df17fa4..dc698caccc4 100644
--- a/fs/ceph/mon_client.c
+++ b/fs/ceph/mon_client.c
@@ -273,7 +273,9 @@ static void __request_mount(struct ceph_mon_client *monc)
if (IS_ERR(msg))
return;
h = msg->front.iov_base;
- h->have_version = 0;
+ h->monhdr.have_version = 0;
+ h->monhdr.session_mon = cpu_to_le16(-1);
+ h->monhdr.session_mon_tid = 0;
ceph_con_send(monc->con, msg);
}
@@ -422,7 +424,9 @@ static int send_statfs(struct ceph_mon_client *monc,
return PTR_ERR(msg);
req->request = msg;
h = msg->front.iov_base;
- h->have_version = 0;
+ h->monhdr.have_version = 0;
+ h->monhdr.session_mon = cpu_to_le16(-1);
+ h->monhdr.session_mon_tid = 0;
h->fsid = monc->monmap->fsid;
h->tid = cpu_to_le64(req->tid);
ceph_con_send(monc->con, msg);