summaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2020-03-20 17:07:36 -0400
committerIlya Dryomov <idryomov@gmail.com>2020-06-01 13:22:52 +0200
commit88828190f0073bd8f9aa5e2b1caf753d289c6d49 (patch)
treee00d713c203f3f50c80dbfbfdaa3db3f8329ad90 /fs/ceph/mds_client.c
parentdc3da0461cc4b76f2d0c5b12247fcb3b520edbbf (diff)
downloadlinux-stable-88828190f0073bd8f9aa5e2b1caf753d289c6d49.tar.gz
linux-stable-88828190f0073bd8f9aa5e2b1caf753d289c6d49.tar.bz2
linux-stable-88828190f0073bd8f9aa5e2b1caf753d289c6d49.zip
ceph: throw a warning if we destroy session with mutex still locked
Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r--fs/ceph/mds_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 20fab5c72d39..de6bb8829837 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -659,6 +659,7 @@ void ceph_put_mds_session(struct ceph_mds_session *s)
if (refcount_dec_and_test(&s->s_ref)) {
if (s->s_auth.authorizer)
ceph_auth_destroy_authorizer(s->s_auth.authorizer);
+ WARN_ON(mutex_is_locked(&s->s_mutex));
xa_destroy(&s->s_delegated_inos);
kfree(s);
}