Re: [PATCH 5/5] ceph: fix ceph feature bits

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 6/29/21 11:38 PM, Jeff Layton wrote:
On Tue, 2021-06-29 at 12:42 +0800, xiubli@xxxxxxxxxx wrote:
From: Xiubo Li <xiubli@xxxxxxxxxx>

Signed-off-by: Xiubo Li <xiubli@xxxxxxxxxx>
---
  fs/ceph/mds_client.h | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/fs/ceph/mds_client.h b/fs/ceph/mds_client.h
index 79d5b8ed62bf..b18eded84ede 100644
--- a/fs/ceph/mds_client.h
+++ b/fs/ceph/mds_client.h
@@ -27,7 +27,9 @@ enum ceph_feature_type {
  	CEPHFS_FEATURE_RECLAIM_CLIENT,
  	CEPHFS_FEATURE_LAZY_CAP_WANTED,
  	CEPHFS_FEATURE_MULTI_RECONNECT,
+	CEPHFS_FEATURE_NAUTILUS,
  	CEPHFS_FEATURE_DELEG_INO,
+	CEPHFS_FEATURE_OCTOPUS,
  	CEPHFS_FEATURE_METRIC_COLLECT,
CEPHFS_FEATURE_MAX = CEPHFS_FEATURE_METRIC_COLLECT,
@@ -43,7 +45,9 @@ enum ceph_feature_type {
  	CEPHFS_FEATURE_REPLY_ENCODING,		\
  	CEPHFS_FEATURE_LAZY_CAP_WANTED,		\
  	CEPHFS_FEATURE_MULTI_RECONNECT,		\
+	CEPHFS_FEATURE_NAUTILUS,		\
  	CEPHFS_FEATURE_DELEG_INO,		\
+	CEPHFS_FEATURE_OCTOPUS,			\
  	CEPHFS_FEATURE_METRIC_COLLECT,		\
  						\
  	CEPHFS_FEATURE_MAX,			\
Do we need this? I thought we had decided to deprecate the whole concept
of release-based feature flags.

This was inconsistent with the MDS side, that means if the MDS only support CEPHFS_FEATURE_DELEG_INO at most in lower version of ceph cluster, then the kclients will try to send the metric messages to MDSes, which could crash the MDS daemons.

For the ceph version feature flags they are redundant since we can check this from the con's, since pacific the MDS code stopped updating it. I assume we should deprecate it since Pacific ?






[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux