From: Xiubo Li <xiubli@redhat.com>
To: Ilya Dryomov <idryomov@gmail.com>, Jeff Layton <jlayton@kernel.org>
Cc: Patrick Donnelly <pdonnell@redhat.com>,
Ceph Development <ceph-devel@vger.kernel.org>
Subject: Re: [PATCH 5/5] ceph: fix ceph feature bits
Date: Thu, 1 Jul 2021 09:07:52 +0800 [thread overview]
Message-ID: <55faeb01-3ba6-9c11-cfdc-36e134ac6bb0@redhat.com> (raw)
In-Reply-To: <CAOi1vP_CR96Nw6J-JTiL7z_zaAXCeYp-hvoqAYb80Av4P1Jhqg@mail.gmail.com>
On 6/30/21 8:52 PM, Ilya Dryomov wrote:
> On Wed, Jun 30, 2021 at 2:05 PM Jeff Layton <jlayton@kernel.org> wrote:
>> On Wed, 2021-06-30 at 08:52 +0800, Xiubo Li wrote:
>>> On 6/29/21 11:38 PM, Jeff Layton wrote:
>>>> On Tue, 2021-06-29 at 12:42 +0800, xiubli@redhat.com wrote:
>>>>> From: Xiubo Li <xiubli@redhat.com>
>>>>>
>>>>> Signed-off-by: Xiubo Li <xiubli@redhat.com>
>>>>> ---
>>>>> 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 ?
>>>
>> I believe so. Basically the version-based features aren't terribly
>> useful. Mostly we want to check feature flags for specific features
>> themselves. Since there are no other occurrences of
>> CEPHFS_FEATURE_NAUTILUS or CEPHFS_FEATURE_OCTOPUS symbols, it's probably
>> best not to define them at all.
Without add this two symbols, we could just correct the number of them,
make sense ?
> Not only that but this patch as is would break CEPHFS_FEATURE_DELEG_INO
> and CEPHFS_FEATURE_METRIC_COLLECT checks in the kernel because their bit
> numbers would change...
Yeah, the problem is that the numbers of them was incorrect, which was
introducing crash bugs.
Thanks
Xiubo
> Thanks,
>
> Ilya
>
next prev parent reply other threads:[~2021-07-01 1:08 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-29 4:42 [PATCH 0/5] flush the mdlog before waiting on unsafe reqs xiubli
2021-06-29 4:42 ` [PATCH 1/5] ceph: export ceph_create_session_msg xiubli
2021-06-29 13:12 ` Jeff Layton
2021-06-29 13:27 ` Xiubo Li
2021-06-30 12:17 ` Ilya Dryomov
2021-07-01 1:50 ` Xiubo Li
2021-06-29 4:42 ` [PATCH 2/5] ceph: export iterate_sessions xiubli
2021-06-29 15:39 ` Jeff Layton
2021-06-30 0:55 ` Xiubo Li
2021-06-29 4:42 ` [PATCH 3/5] ceph: flush mdlog before umounting xiubli
2021-06-29 15:34 ` Jeff Layton
2021-06-30 0:36 ` Xiubo Li
2021-06-30 12:39 ` Ilya Dryomov
2021-07-01 1:18 ` Xiubo Li
2021-06-29 4:42 ` [PATCH 4/5] ceph: flush the mdlog before waiting on unsafe reqs xiubli
2021-06-29 13:25 ` Jeff Layton
2021-06-30 1:26 ` Xiubo Li
2021-06-30 12:13 ` Jeff Layton
2021-07-01 1:16 ` Xiubo Li
2021-07-01 3:27 ` Patrick Donnelly
[not found] ` <e917a3e1-2902-604b-5154-98086c95357f@redhat.com>
2021-07-01 23:46 ` Patrick Donnelly
2021-07-02 0:01 ` Xiubo Li
2021-07-02 13:17 ` Xiubo Li
2021-07-02 18:14 ` Patrick Donnelly
2021-07-03 1:33 ` Xiubo Li
2021-06-29 4:42 ` [PATCH 5/5] ceph: fix ceph feature bits xiubli
2021-06-29 15:38 ` Jeff Layton
2021-06-30 0:52 ` Xiubo Li
2021-06-30 12:05 ` Jeff Layton
2021-06-30 12:52 ` Ilya Dryomov
2021-07-01 1:07 ` Xiubo Li [this message]
2021-07-01 1:08 ` Xiubo Li
2021-07-01 3:35 ` Xiubo Li
2021-06-29 15:27 ` [PATCH 0/5] flush the mdlog before waiting on unsafe reqs Jeff Layton
2021-06-30 0:35 ` Xiubo Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55faeb01-3ba6-9c11-cfdc-36e134ac6bb0@redhat.com \
--to=xiubli@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=idryomov@gmail.com \
--cc=jlayton@kernel.org \
--cc=pdonnell@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).