diff options
author | Yan, Zheng <zyan@redhat.com> | 2018-12-10 16:35:09 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-12-26 16:08:36 +0100 |
commit | d2f8bb27c87945ab696bdaea25b0465dee94fb6d (patch) | |
tree | 30fb1b0d4e6d29fb939ad52b68ad1294d63ca537 /fs/ceph/mds_client.h | |
parent | fdac94fab7995ebc52ff9c5b6247133c67a7564a (diff) | |
download | linux-stable-d2f8bb27c87945ab696bdaea25b0465dee94fb6d.tar.gz linux-stable-d2f8bb27c87945ab696bdaea25b0465dee94fb6d.tar.bz2 linux-stable-d2f8bb27c87945ab696bdaea25b0465dee94fb6d.zip |
ceph: update wanted caps after resuming stale session
mds contains an optimization, it does not re-issue stale caps if
client does not want any cap.
A special case of the optimization is that client wants some caps,
but skipped updating 'wanted'. For this case, client needs to update
'wanted' when stale session get renewed.
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.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h index 32fcce0d4d3c..729da155ebf0 100644 --- a/fs/ceph/mds_client.h +++ b/fs/ceph/mds_client.h @@ -17,14 +17,16 @@ #include <linux/ceph/auth.h> /* The first 8 bits are reserved for old ceph releases */ -#define CEPHFS_FEATURE_MIMIC 8 - -#define CEPHFS_FEATURES_ALL { \ - 0, 1, 2, 3, 4, 5, 6, 7, \ - CEPHFS_FEATURE_MIMIC, \ +#define CEPHFS_FEATURE_MIMIC 8 +#define CEPHFS_FEATURE_REPLY_ENCODING 9 +#define CEPHFS_FEATURE_RECLAIM_CLIENT 10 +#define CEPHFS_FEATURE_LAZY_CAP_WANTED 11 + +#define CEPHFS_FEATURES_CLIENT_SUPPORTED { \ + 0, 1, 2, 3, 4, 5, 6, 7, \ + CEPHFS_FEATURE_MIMIC, \ + CEPHFS_FEATURE_LAZY_CAP_WANTED, \ } - -#define CEPHFS_FEATURES_CLIENT_SUPPORTED CEPHFS_FEATURES_ALL #define CEPHFS_FEATURES_CLIENT_REQUIRED {} |