mds,client: correct last_issue struct fields and consistently send last_issue in cap messages#60283
Merged
mds,client: correct last_issue struct fields and consistently send last_issue in cap messages#60283
Conversation
A const getter already exists. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Originally, the last_sent sequence from the MDS was sent by the client during bulk cap release but it was shortly after changed to the last_issue which is the sequence number that the cap was originally "issued" by the MDS rank (which may be updated after import of caps). Fixes: 6208f57 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
The peer seq is used as the issue_seq. Use that name for consistency. Fixes: 4fdeb00 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Right now only the clients tell the MDS what they believe the issue_seq to be. The clients are expected to figure out issue_seq updates at Fixes: https://tracker.ceph.com/issues/68515 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Member
Author
|
jenkins test api |
Member
Author
|
jenkins test make check arm64 |
Member
Author
|
This PR is under test in https://tracker.ceph.com/issues/68629. |
batrick
added a commit
to batrick/ceph
that referenced
this pull request
Oct 19, 2024
* refs/pull/60283/head: mds: add issue_seq to all cap messages include/ceph_fs: correct ceph_mds_cap_peer field name include/ceph_fs: correct ceph_mds_cap_item field name messages/MClientCaps: use correct ceph_seq_t for cap sequence types messages/MClientCaps: dump issue_seq for debugging mds: remove dead code
Member
Author
Contributor
|
(On this today) |
Member
Author
|
This PR is under test in https://tracker.ceph.com/issues/68786. |
vshankar
approved these changes
Nov 4, 2024
Member
Author
|
This PR is under test in https://tracker.ceph.com/issues/68859. |
Member
Author
idryomov
reviewed
Nov 18, 2024
| tcap.seq = m->peer.seq - 1; | ||
| tcap.issue_seq = tcap.seq; | ||
| tcap.seq = m->peer.issue_seq - 1; | ||
| tcap.issue_seq = tcap.issue_seq; |
Contributor
There was a problem hiding this comment.
@batrick I was taking a look at "ceph: correct ceph_mds_cap_peer field name" patch for the kernel client and there is something fishy here:
- previously both clients effectively assigned
m->peer.seq - 1totcap.seqandtcap.issue_seq m->peer.seqgot renamed tom->peer.issue_seq- kernel client continues to assign that value to both fields
tcap->seq = t_issue_seq - 1;
tcap->issue_seq = t_issue_seq - 1;
- userspace client assigns that value only to
tcap.seq, fortcap.issue_seqthere appears to be a bogus self-assignment
Member
Author
There was a problem hiding this comment.
@batrick I was taking a look at "ceph: correct ceph_mds_cap_peer field name" patch for the kernel client and there is something fishy here:
* previously both clients effectively assigned `m->peer.seq - 1` to `tcap.seq` and `tcap.issue_seq`
Correct.
* `m->peer.seq` got renamed to `m->peer.issue_seq`
Correct.
* kernel client continues to assign that value to both fieldstcap->seq = t_issue_seq - 1; tcap->issue_seq = t_issue_seq - 1;* userspace client assigns that value only to `tcap.seq`, for `tcap.issue_seq` there appears to be a bogus self-assignment
Oh, very nice catch. My find/replace clearly messed that up.
14 tasks
batrick
added a commit
to batrick/ceph
that referenced
this pull request
Nov 18, 2024
Credit to Ilya Dryomov for spotting this. [1] ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
batrick
added a commit
to batrick/ceph
that referenced
this pull request
Feb 17, 2025
Credit to Ilya Dryomov for spotting this. [1] ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com> (cherry picked from commit a07c5ef)
batrick
added a commit
to batrick/ceph
that referenced
this pull request
Feb 17, 2025
Credit to Ilya Dryomov for spotting this. [1] ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com> (cherry picked from commit a07c5ef)
harriscr
pushed a commit
to ceph/ceph-ci
that referenced
this pull request
May 15, 2025
Credit to Ilya Dryomov for spotting this. [1] ceph/ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
joscollin
pushed a commit
to joscollin/ceph
that referenced
this pull request
Oct 3, 2025
Credit to Ilya Dryomov for spotting this. [1] ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com> (cherry picked from commit a07c5ef)
14 tasks
joscollin
pushed a commit
to joscollin/ceph
that referenced
this pull request
Oct 3, 2025
Credit to Ilya Dryomov for spotting this. [1] ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com> (cherry picked from commit a07c5ef)
batrick
added a commit
to batrick/ceph
that referenced
this pull request
Oct 3, 2025
Credit to Ilya Dryomov for spotting this. [1] ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com> (cherry picked from commit a07c5ef)
joscollin
pushed a commit
to joscollin/ceph
that referenced
this pull request
Oct 4, 2025
Credit to Ilya Dryomov for spotting this. [1] ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com> (cherry picked from commit a07c5ef)
NitzanMordhai
pushed a commit
to NitzanMordhai/ceph
that referenced
this pull request
Mar 5, 2026
Credit to Ilya Dryomov for spotting this. [1] ceph#60283 (comment) Fixes: 1da6ef2 Fixes: https://tracker.ceph.com/issues/68973 Signed-off-by: Patrick Donnelly <pdonnell@ibm.com> (cherry picked from commit a07c5ef)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First set of changes I'd like to do for
https://tracker.ceph.com/issues/66704
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e