aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/mds_client.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2019-01-01 03:28:33 -0500
committerIlya Dryomov <idryomov@gmail.com>2019-03-05 12:55:16 -0500
commit81c5a1487e52a316e5e7d79e9911376648a79e85 (patch)
treeb716d8a8ec3d7b012197776fafd4c3f68c31c33c /fs/ceph/mds_client.h
parent84bf39509bea5b9f936281c4c660e75099fcd15f (diff)
ceph: split large reconnect into multiple messages
Signed-off-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h
index 0d3264cf3334..4f962642fee4 100644
--- a/fs/ceph/mds_client.h
+++ b/fs/ceph/mds_client.h
@@ -21,11 +21,13 @@
21#define CEPHFS_FEATURE_REPLY_ENCODING 9 21#define CEPHFS_FEATURE_REPLY_ENCODING 9
22#define CEPHFS_FEATURE_RECLAIM_CLIENT 10 22#define CEPHFS_FEATURE_RECLAIM_CLIENT 10
23#define CEPHFS_FEATURE_LAZY_CAP_WANTED 11 23#define CEPHFS_FEATURE_LAZY_CAP_WANTED 11
24#define CEPHFS_FEATURE_MULTI_RECONNECT 12
24 25
25#define CEPHFS_FEATURES_CLIENT_SUPPORTED { \ 26#define CEPHFS_FEATURES_CLIENT_SUPPORTED { \
26 0, 1, 2, 3, 4, 5, 6, 7, \ 27 0, 1, 2, 3, 4, 5, 6, 7, \
27 CEPHFS_FEATURE_MIMIC, \ 28 CEPHFS_FEATURE_MIMIC, \
28 CEPHFS_FEATURE_LAZY_CAP_WANTED, \ 29 CEPHFS_FEATURE_LAZY_CAP_WANTED, \
30 CEPHFS_FEATURE_MULTI_RECONNECT, \
29} 31}
30#define CEPHFS_FEATURES_CLIENT_REQUIRED {} 32#define CEPHFS_FEATURES_CLIENT_REQUIRED {}
31 33
@@ -342,6 +344,7 @@ struct ceph_mds_client {
342 struct rw_semaphore snap_rwsem; 344 struct rw_semaphore snap_rwsem;
343 struct rb_root snap_realms; 345 struct rb_root snap_realms;
344 struct list_head snap_empty; 346 struct list_head snap_empty;
347 int num_snap_realms;
345 spinlock_t snap_empty_lock; /* protect snap_empty */ 348 spinlock_t snap_empty_lock; /* protect snap_empty */
346 349
347 u64 last_tid; /* most recent mds request */ 350 u64 last_tid; /* most recent mds request */