Skip to content

squid: mds: set the proper extra bl for the create request#58527

Merged
lxbsz merged 4 commits intoceph:squidfrom
joscollin:wip-66626-squid
Jul 22, 2024
Merged

squid: mds: set the proper extra bl for the create request#58527
lxbsz merged 4 commits intoceph:squidfrom
joscollin:wip-66626-squid

Conversation

@joscollin
Copy link
Member

backport tracker: https://tracker.ceph.com/issues/66626


backport of #57754
parent tracker: https://tracker.ceph.com/issues/63265

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

lxbsz added 4 commits July 11, 2024 07:06
Fixes: https://tracker.ceph.com/issues/63265
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit d48b169)
Fixes: https://tracker.ceph.com/issues/63265
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 6615a56)
In the client side it will decode the extra info depending on the
feature bits, but if we always encode it with the old version then
the client could crash or gets the corrupted data. More detail
please see "parse_reply_info_create()" in kclient code.

Fixes: https://tracker.ceph.com/issues/63265
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 1f1198b)
Just in case a create request was totally completed but the client
didn't receive any unsafe and safe responses, and then when it's
retried in the MDS side it will be treated as a open request and
will miss setting the create ino for the reply message.

Finally for client it just sent a create request and then the MDS
just sent back a open reply, which will let the client miss setting
the CREATED flag and then the VFS will fail the create by returnning
a -EEXIST errno.

Fixes: https://tracker.ceph.com/issues/63265
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 3482100)
@joscollin joscollin added this to the squid milestone Jul 11, 2024
@joscollin joscollin added the cephfs Ceph File System label Jul 11, 2024
@joscollin joscollin requested a review from a team July 11, 2024 04:19
@joscollin
Copy link
Member Author

This PR is under test in https://tracker.ceph.com/issues/66906.

Copy link
Member

@lxbsz lxbsz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of the failure is related to this backport PR:

More detail please see section 2024-07-17 in https://tracker.ceph.com/projects/cephfs/wiki/Squid.

@lxbsz lxbsz merged commit 6770c48 into ceph:squid Jul 22, 2024
@joscollin joscollin deleted the wip-66626-squid branch July 23, 2024 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants