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

luminous: cephfs: race of updating wanted caps #25762

Merged
merged 2 commits into from
Jan 16, 2019

Conversation

pdvian
Copy link

@pdvian pdvian commented Jan 3, 2019

Excluding caps (that replica inode disallows) make client and mds
have different view of wanted caps. It causes problem in some corner
cases of subtree migration.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/37464
(cherry picked from commit 5a39f1d)

Conflicts:
	src/mds/Locker.cc : Resolved in request_inode_file_caps
Updating mseq makes client think importer mds has accepted all prior
cap messages and importer mds knows what caps client wants. Actually
some cap messages may have been dropped because of mseq mismatch.

If mseq is left untouched, importing caps' mds_wanted later will get
reset by cap import message.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/37464
(cherry picked from commit d308b54)

Conflicts:
	src/client/Client.cc : Resolved in handle_cap_export
@yuriw
Copy link
Contributor

yuriw commented Jan 12, 2019

@smithfarm smithfarm changed the title luminous: race of updating wanted caps luminous: cephfs: race of updating wanted caps Jan 14, 2019
@yuriw yuriw merged commit 4aaeba3 into ceph:luminous Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants