ceph: drop messages on unregistered mds sessions; cleanup
authorSage Weil <sage@newdream.net>
Mon, 22 Feb 2010 23:12:16 +0000 (15:12 -0800)
committerSage Weil <sage@newdream.net>
Tue, 23 Feb 2010 22:26:35 +0000 (14:26 -0800)
commit2600d2dd5085ab6fb09540226138a60055abf335
tree5aeb8a110eb7a41dab2d16b3a5ba8d67ad068a82
parenta6369741c48815fedfce7072b7a9cd98b5bafd56
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>
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/snap.c
fs/ceph/super.h