diff options
author | Sage Weil <sage@newdream.net> | 2010-02-22 18:12:16 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-23 17:26:35 -0500 |
commit | 2600d2dd5085ab6fb09540226138a60055abf335 (patch) | |
tree | 5aeb8a110eb7a41dab2d16b3a5ba8d67ad068a82 /fs/ceph/super.h | |
parent | a6369741c48815fedfce7072b7a9cd98b5bafd56 (diff) |
ceph: drop messages on unregistered mds sessions; cleanup
Verify the mds session is currently registered before handling
incoming messages. Clean up message handlers to pull mds out
of session->s_mds instead of less trustworthy src field.
Clean up con_{get,put} debug output.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index 384f0e2e7c68..ff7aaa32736c 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h | |||
@@ -707,6 +707,7 @@ extern void ceph_put_snap_realm(struct ceph_mds_client *mdsc, | |||
707 | extern int ceph_update_snap_trace(struct ceph_mds_client *m, | 707 | extern int ceph_update_snap_trace(struct ceph_mds_client *m, |
708 | void *p, void *e, bool deletion); | 708 | void *p, void *e, bool deletion); |
709 | extern void ceph_handle_snap(struct ceph_mds_client *mdsc, | 709 | extern void ceph_handle_snap(struct ceph_mds_client *mdsc, |
710 | struct ceph_mds_session *session, | ||
710 | struct ceph_msg *msg); | 711 | struct ceph_msg *msg); |
711 | extern void ceph_queue_cap_snap(struct ceph_inode_info *ci, | 712 | extern void ceph_queue_cap_snap(struct ceph_inode_info *ci, |
712 | struct ceph_snap_context *snapc); | 713 | struct ceph_snap_context *snapc); |