Repository navigation
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 <[email protected]>
Signed-off-by: Patrick Donnelly <[email protected]>
Signed-off-by: Patrick Donnelly <[email protected]>
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 <[email protected]>
The peer seq is used as the issue_seq. Use that name for consistency. Fixes: 4fdeb00 Signed-off-by: Patrick Donnelly <[email protected]>
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 <[email protected]>
|
jenkins test api |
|
jenkins test make check arm64 |
|
This PR is under test in https://tracker.ceph.com/issues/68629. |
* 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
|
(On this today) |
|
This PR is under test in https://tracker.ceph.com/issues/68786. |
|
This PR is under test in https://tracker.ceph.com/issues/68859. |
| tcap.seq = m->peer.seq - 1; | ||
| tcap.issue_seq = tcap.seq; | ||
| tcap.seq = m->peer.issue_seq - 1; | ||
| tcap.issue_seq = tcap.issue_seq; |
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
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.
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 <[email protected]>
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 <[email protected]> (cherry picked from commit a07c5ef)
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 <[email protected]>
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 <[email protected]> (cherry picked from commit a07c5ef)
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 <[email protected]> (cherry picked from commit a07c5ef)
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 <[email protected]> (cherry picked from commit 1cb07f9)
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