Repository navigation
Conversation
20d7b3f to
19c469a
Compare
|
jenkins retest this please |
|
jenkins test make check |
There was a problem hiding this comment.
These changes do not look related to client: try to invalidate the dcache when any shared caps lost. Can you explain? Perhaps in another commit?
Also, do you have a reproducer for the problem or is this something you believe exists but can't reproduce?
There was a problem hiding this comment.
These changes do not look related to
client: try to invalidate the dcache when any shared caps lost. Can you explain? Perhaps in another commit?
I intend to invalidate the dentry cache only, in such as kernel fuse or third part app, like the Ganesha's NFS, when any shared caps gets lost. To make sure that the kernel fuse or Ganesha's NFS to ignore the relevant dentry caches.
There has two cases will trigger this in handle_cap_grant(), the first one is when nlink == 0 and another is when any shared caps gets lost.
Also, do you have a reproducer for the problem or is this something you believe exists but can't reproduce?
I didn't have the Ganesha NFS setups, so tried to use the ceph-fuse by hard coding to enable the entry_timeout options for the lookup today. The test case is :
mounter-cephfs-A: 'touch /mnt/cephfs-A/file0; ll /mnt/cephfs-A/'
mounter-cpehfs-B: 'ln /mnt/cephfs-B/file0 /mnt/cephfs-B/file1; rm /mnt/cephfs-B/file0 -f'
mounter-cephfs-A: 'll /cephfs/file0'
Without this PR, in the last step in mounter-cephfs-A we can still see the file0.
More detail please see: https://tracker.ceph.com/issues/53730#note-5
IMO, this should be enough to help Sheng Xie to push the above tracker to add the entry_timeout and attr_timeout support, which really could improve the perf much.
19c469a to
47318e6
Compare
There was a problem hiding this comment.
I'm not sure this condition works to preserve prior behavior — if there are hard links, we might have dropped our last reference to the inode without it ending up at nlink==0.
There was a problem hiding this comment.
Before only when in->nlink == 0 will the deleted_inode be set. The code:
5455 if (in->nlink == 0)
5456 deleted_inode = true;
And currently I added another case when CEPH_STAT_CAP_INODE_ALL caps are being revoked will the deleted_inode to be set too.
Yeah, I will push another version to make the code more readable.
47318e6 to
84e1c58
Compare
|
This version looks better to me 👍 |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
rishabh-d-dave
left a comment
There was a problem hiding this comment.
Looks okay to me.
rishabh-d-dave
left a comment
There was a problem hiding this comment.
Looks okay to me.
(Forgot to approve last time)
|
jenkins test make check |
|
jenkins test api |
|
jenkins test docs |
|
@lxbsz Should this PR be put through QA? |
Yeah, please. Thanks. |
We don't know what has happened when the MDS is revoking the shared caps, maybe deleting the files, etc. We need to invalidate the dcaches for the dentries linked to that inode to force to lookup it from the backend in future. Signed-off-by: Xiubo Li <[email protected]>
84e1c58 to
6535938
Compare
|
Just rebased it and nothing changed. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
We don't know what has happened when the MDS is revoking the shared
caps, maybe deleting the files, etc. We need to invalidate the dcaches
for the dentries linked to that inode to force to lookup it from the backend
in future.
Signed-off-by: Xiubo Li [email protected]
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 tox