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/caps.c | |
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/caps.c')
-rw-r--r-- | fs/ceph/caps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index b6154ffe70df..bb846164addc 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c | |||
@@ -2600,7 +2600,7 @@ void ceph_handle_caps(struct ceph_mds_session *session, | |||
2600 | struct inode *inode; | 2600 | struct inode *inode; |
2601 | struct ceph_cap *cap; | 2601 | struct ceph_cap *cap; |
2602 | struct ceph_mds_caps *h; | 2602 | struct ceph_mds_caps *h; |
2603 | int mds = le64_to_cpu(msg->hdr.src.name.num); | 2603 | int mds = session->s_mds; |
2604 | int op; | 2604 | int op; |
2605 | u32 seq; | 2605 | u32 seq; |
2606 | struct ceph_vino vino; | 2606 | struct ceph_vino vino; |