Skip to content

Commit 9f35899

Browse files
jtlaytonidryomov
authored andcommitted
ceph: drop the mdsc_get_session/put_session dout messages
These are very chatty, racy, and not terribly useful. Just remove them. Signed-off-by: Jeff Layton <[email protected]> Reviewed-by: Ilya Dryomov <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 3eaf5aa commit 9f35899

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

fs/ceph/mds_client.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -653,23 +653,16 @@ const char *ceph_session_state_name(int s)
653653

654654
struct ceph_mds_session *ceph_get_mds_session(struct ceph_mds_session *s)
655655
{
656-
if (refcount_inc_not_zero(&s->s_ref)) {
657-
dout("mdsc get_session %p %d -> %d\n", s,
658-
refcount_read(&s->s_ref)-1, refcount_read(&s->s_ref));
656+
if (refcount_inc_not_zero(&s->s_ref))
659657
return s;
660-
} else {
661-
dout("mdsc get_session %p 0 -- FAIL\n", s);
662-
return NULL;
663-
}
658+
return NULL;
664659
}
665660

666661
void ceph_put_mds_session(struct ceph_mds_session *s)
667662
{
668663
if (IS_ERR_OR_NULL(s))
669664
return;
670665

671-
dout("mdsc put_session %p %d -> %d\n", s,
672-
refcount_read(&s->s_ref), refcount_read(&s->s_ref)-1);
673666
if (refcount_dec_and_test(&s->s_ref)) {
674667
if (s->s_auth.authorizer)
675668
ceph_auth_destroy_authorizer(s->s_auth.authorizer);

0 commit comments

Comments
 (0)