summaryrefslogtreecommitdiffstats
path: root/fs/ceph/mon_client.h
diff options
context:
space:
mode:
authorSage Weil2010-05-21 23:57:25 +0200
committerSage Weil2010-05-22 01:26:11 +0200
commit240ed68eb567d80dd6bab739341999a5ab0ad55d (patch)
treefabd30d0897a30fa401f85e858f8aecdedb02959 /fs/ceph/mon_client.h
parentceph: avoid resending queued message to monitor (diff)
downloadkernel-qcow2-linux-240ed68eb567d80dd6bab739341999a5ab0ad55d.tar.gz
kernel-qcow2-linux-240ed68eb567d80dd6bab739341999a5ab0ad55d.tar.xz
kernel-qcow2-linux-240ed68eb567d80dd6bab739341999a5ab0ad55d.zip
ceph: reuse mon subscribe message instead of allocated anew
Use the same message, allocated during startup. No need to reallocate a new one each time around (and potentially ENOMEM). Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/mon_client.h')
-rw-r--r--fs/ceph/mon_client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mon_client.h b/fs/ceph/mon_client.h
index 76887785a4d7..174d794321d0 100644
--- a/fs/ceph/mon_client.h
+++ b/fs/ceph/mon_client.h
@@ -63,7 +63,7 @@ struct ceph_mon_client {
struct delayed_work delayed_work;
struct ceph_auth_client *auth;
- struct ceph_msg *m_auth, *m_auth_reply, *m_subscribe_ack;
+ struct ceph_msg *m_auth, *m_auth_reply, *m_subscribe, *m_subscribe_ack;
int pending_auth;
bool hunting;