ceph: eliminate session->s_trim_caps
authorJeff Layton <jlayton@kernel.org>
Fri, 19 Jul 2019 19:22:28 +0000 (15:22 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:24 +0000 (12:06 +0200)
commit533a2818dd1a00cdd32d638fea0178e25a683053
tree17865c460392d46480ccc1cbb09b0f828f6447c7
parent606d102327a45a49d293557527802ee7fbfd7af1
ceph: eliminate session->s_trim_caps

It's only used to keep count of caps being trimmed, but that requires
that we hold the session->s_mutex to prevent multiple trimming
operations from running concurrently.

We can achieve the same effect using an integer on the stack, which
allows us to (eventually) not need the s_mutex.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/mds_client.h