Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mds: acquire inode snaplock in open #52520

Merged
merged 1 commit into from
Aug 22, 2023
Merged

mds: acquire inode snaplock in open #52520

merged 1 commit into from
Aug 22, 2023

Conversation

batrick
Copy link
Member

@batrick batrick commented Jul 18, 2023

It doesn't make sense that

open("file", O_CREAT|...)

will acquire a readlock on the file's snaplock when the file already exists, but:

open("file", ...)

will not.

Fixes: https://tracker.ceph.com/issues/62058
Fixes: c1d7f93

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

It doesn't make sense that

   open("file", O_CREAT|...)

will acquire a readlock on the file's snaplock when the file already
exists, but:

   open("file", ...)

will not.

Fixes: https://tracker.ceph.com/issues/62058
Fixes: c1d7f93
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
@batrick batrick added cephfs Ceph File System needs-review labels Jul 18, 2023
@batrick batrick requested a review from a team July 19, 2023 19:01
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.

Good catch!

@vshankar
Copy link
Contributor

jenkins retest this please

@batrick
Copy link
Member Author

batrick commented Aug 3, 2023

jenkins test make check arm64

Copy link
Contributor

@mchangir mchangir left a comment

Choose a reason for hiding this comment

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

LGTM

@batrick
Copy link
Member Author

batrick commented Aug 16, 2023

jenkins test make check arm64

@vshankar
Copy link
Contributor

Test update: Tests passed, preparing run wiki - will merge soon.

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.

@vshankar vshankar merged commit 172ad82 into ceph:main Aug 22, 2023
15 of 16 checks passed
@batrick batrick deleted the i62058 branch August 28, 2023 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System needs-review
Projects
None yet
3 participants