diff options
author | Jeff Layton <jlayton@kernel.org> | 2021-06-14 15:38:39 -0400 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2021-06-29 00:15:52 +0200 |
commit | 7732fe168edaea825ed65954712c825f4625f2ba (patch) | |
tree | 66130b7daef16ffa9f9967eba537356d6a6e1ec8 /fs/ceph/snap.c | |
parent | 0449a35222e97efe05cd00885bfe4a6924dee5c7 (diff) | |
download | linux-7732fe168edaea825ed65954712c825f4625f2ba.tar.bz2 |
ceph: don't take s_mutex in ceph_flush_snaps
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Luis Henriques <lhenriques@suse.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/snap.c')
-rw-r--r-- | fs/ceph/snap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ceph/snap.c b/fs/ceph/snap.c index f8cac2abab3f..8ca95d13ea31 100644 --- a/fs/ceph/snap.c +++ b/fs/ceph/snap.c @@ -846,10 +846,7 @@ static void flush_snaps(struct ceph_mds_client *mdsc) } spin_unlock(&mdsc->snap_flush_lock); - if (session) { - mutex_unlock(&session->s_mutex); - ceph_put_mds_session(session); - } + ceph_put_mds_session(session); dout("flush_snaps done\n"); } |