diff options
author | Jeff Layton <jlayton@kernel.org> | 2019-07-19 22:22:28 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-09-16 13:06:24 +0300 |
commit | 533a2818dd1a00cdd32d638fea0178e25a683053 (patch) | |
tree | 17865c460392d46480ccc1cbb09b0f828f6447c7 /fs/ceph/mds_client.h | |
parent | 606d102327a45a49d293557527802ee7fbfd7af1 (diff) | |
download | linux-533a2818dd1a00cdd32d638fea0178e25a683053.tar.xz |
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>
Diffstat (limited to 'fs/ceph/mds_client.h')
-rw-r--r-- | fs/ceph/mds_client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h index 810fd8689dff..5cd131b41d84 100644 --- a/fs/ceph/mds_client.h +++ b/fs/ceph/mds_client.h @@ -176,7 +176,7 @@ struct ceph_mds_session { spinlock_t s_cap_lock; struct list_head s_caps; /* all caps issued by this session */ struct ceph_cap *s_cap_iterator; - int s_nr_caps, s_trim_caps; + int s_nr_caps; int s_num_cap_releases; int s_cap_reconnect; int s_readonly; |