summaryrefslogtreecommitdiffstats
path: root/fs/ceph/mon_client.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-21 14:57:25 -0700
committerSage Weil <sage@newdream.net>2010-05-21 16:26:11 -0700
commit240ed68eb567d80dd6bab739341999a5ab0ad55d (patch)
treefabd30d0897a30fa401f85e858f8aecdedb02959 /fs/ceph/mon_client.h
parent970690012c572fc3b7be532080564b730f6a9c02 (diff)
downloadlinux-240ed68eb567d80dd6bab739341999a5ab0ad55d.tar.gz
linux-240ed68eb567d80dd6bab739341999a5ab0ad55d.tar.bz2
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;