diff options
author | Sage Weil <sage@newdream.net> | 2010-02-22 15:12:16 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-23 14:26:35 -0800 |
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, extern int ceph_update_snap_trace(struct ceph_mds_client *m, void *p, void *e, bool deletion); extern void ceph_handle_snap(struct ceph_mds_client *mdsc, + struct ceph_mds_session *session, struct ceph_msg *msg); extern void ceph_queue_cap_snap(struct ceph_inode_info *ci, struct ceph_snap_context *snapc); |