diff options
author | Henry C Chang <henry.cy.chang@gmail.com> | 2011-05-11 12:29:52 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-05-11 19:44:34 +0200 |
commit | 7d8e18a69d9ebb8bf51748842929f8cc1ad61d49 (patch) | |
tree | b4cc645a5ede559c7b91648150fca88e9c1c2b64 /fs/ceph | |
parent | ceph: do not call __mark_dirty_inode under i_lock (diff) | |
download | linux-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/ceph')
-rw-r--r-- | fs/ceph/mds_client.c | 2 |
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)); } /* |