Skip to content

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

Merged
xiubli merged 4 commits into
ceph:squidfrom
joscollin:wip-66626-squid
Jul 22, 2024
Merged

xiubli merged 4 commits into
ceph:squidfrom
joscollin:wip-66626-squid

Conversation

@joscollin

Copy link
Copy Markdown
Member

xiubli added 4 commits July 11, 2024 07:06
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 <[email protected]>
(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 <[email protected]>
(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
Copy Markdown
Member Author

@xiubli xiubli left a comment

Copy link
Copy Markdown
Member

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.

@xiubli
xiubli merged commit 6770c48 into ceph:squid Jul 22, 2024
@joscollin
joscollin deleted the wip-66626-squid branch July 23, 2024 03:28
afreen23 pushed a commit to rhcs-dashboard/ceph that referenced this pull request Jul 29, 2026
squid: mds: set the proper extra bl for the create request
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