Skip to content

Commit f48e034

Browse files
vshankaridryomov
authored andcommitted
ceph: reinitialize mds feature bit even when session in open
Following along the same lines as per the user-space fix. Right now this isn't really an issue with the ceph kernel driver because of the feature bit laginess, however, that can change over time (when the new snaprealm info type is ported to the kernel driver) and depending on the MDS version that's being upgraded can cause message decoding issues - so, fix that early on. Link: http://tracker.ceph.com/issues/63188 Signed-off-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent cbcb358 commit f48e034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/mds_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4128,12 +4128,12 @@ static void handle_session(struct ceph_mds_session *session,
41284128
pr_info_client(cl, "mds%d reconnect success\n",
41294129
session->s_mds);
41304130

4131+
session->s_features = features;
41314132
if (session->s_state == CEPH_MDS_SESSION_OPEN) {
41324133
pr_notice_client(cl, "mds%d is already opened\n",
41334134
session->s_mds);
41344135
} else {
41354136
session->s_state = CEPH_MDS_SESSION_OPEN;
4136-
session->s_features = features;
41374137
renewed_caps(mdsc, session, 0);
41384138
if (test_bit(CEPHFS_FEATURE_METRIC_COLLECT,
41394139
&session->s_features))

0 commit comments

Comments
 (0)