Skip to content

client: force sending cap revoke ack always#52175

Merged
vshankar merged 1 commit intoceph:mainfrom
lxbsz:wip-61782
Jul 13, 2023
Merged

client: force sending cap revoke ack always#52175
vshankar merged 1 commit intoceph:mainfrom
lxbsz:wip-61782

Conversation

@lxbsz
Copy link
Member

@lxbsz lxbsz commented Jun 23, 2023

If just before the revoke request, which will increase the 'seq', is
sent out the clients released the corresponding caps and sent out
the cap update request with old 'seq', the mds will miss checking
the seqs and calculating the caps.

We should always send an ack for revoke requests.

Fixes: https://tracker.ceph.com/issues/61782

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@lxbsz lxbsz requested review from a team and vshankar June 23, 2023 15:14
@github-actions github-actions bot added the cephfs Ceph File System label Jun 23, 2023
Copy link
Contributor

@kotreshhr kotreshhr left a comment

Choose a reason for hiding this comment

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

Changes look good but the timeout in the test happened because of this ?

@lxbsz
Copy link
Member Author

lxbsz commented Jun 26, 2023

Changes look good but the timeout in the test happened because of this ?

Yeah, it is.

@lxbsz lxbsz changed the title mds: fix incorrectly checking the caps update request's seq client: force sending cap revoke ack always Jun 27, 2023
Copy link
Member

@batrick batrick left a comment

Choose a reason for hiding this comment

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

Does the kernel also have this problem?

@lxbsz
Copy link
Member Author

lxbsz commented Jun 28, 2023

Does the kernel also have this problem?

Yeah, I have fixed it too and Cced you.

The patchwork link: https://patchwork.kernel.org/project/ceph-devel/patch/20230627070101.170876-1-xiubli@redhat.com/.

Thanks.

If just before the revoke request, which will increase the 'seq', is
sent out the clients released the corresponding caps and sent out
the cap update request with old 'seq', the mds will miss checking
the seqs and calculating the caps.

We should always send an ack for revoke requests.

Fixes: https://tracker.ceph.com/issues/61782
Signed-off-by: Xiubo Li <xiubli@redhat.com>
@vshankar
Copy link
Contributor

vshankar commented Jul 3, 2023

jenkins test windows

@vshankar
Copy link
Contributor

@vshankar
Copy link
Contributor

jenkins test windows

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

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.

4 participants