summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorHenry C Chang <henry.cy.chang@gmail.com>2011-05-11 12:29:52 +0200
committerSage Weil <sage@newdream.net>2011-05-11 19:44:34 +0200
commit7d8e18a69d9ebb8bf51748842929f8cc1ad61d49 (patch)
treeb4cc645a5ede559c7b91648150fca88e9c1c2b64 /fs
parentceph: do not call __mark_dirty_inode under i_lock (diff)
downloadlinux-7d8e18a69d9ebb8bf51748842929f8cc1ad61d49.tar.xz
linux-7d8e18a69d9ebb8bf51748842929f8cc1ad61d49.zip
ceph: print debug message before put mds session
The mds session, s, could be freed during ceph_put_mds_session. Move dout before ceph_put_mds_session. Signed-off-by: Henry C Chang <henry.cy.chang@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/mds_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index f60b07b0feb0..d0fae4ce9ba5 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -3304,8 +3304,8 @@ static void con_put(struct ceph_connection *con)
{
struct ceph_mds_session *s = con->private;
+ dout("mdsc con_put %p (%d)\n", s, atomic_read(&s->s_ref) - 1);
ceph_put_mds_session(s);
- dout("mdsc con_put %p (%d)\n", s, atomic_read(&s->s_ref));
}
/*