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

client: properly trim unlinked inode #7297

Merged
merged 1 commit into from Jan 29, 2016
Merged

Conversation

ukernel
Copy link
Contributor

@ukernel ukernel commented Jan 20, 2016

Client should trim inode from its cache when receiving a cap message
with nlink == 0. But the corresponding code has a bug, it does nothing
when inode's nlink is already 0.

Fixes: #13903
Signed-off-by: Yan, Zheng zyan@redhat.com

Client should trim inode from its cache when receiving a cap message
with nlink == 0. But the corresponding code has a bug, it does nothing
when inode's nlink is already 0.

Fixes: ceph#13903
Signed-off-by: Yan, Zheng <zyan@redhat.com>
@ukernel ukernel added bug-fix cephfs Ceph File System labels Jan 20, 2016
@ukernel
Copy link
Contributor Author

ukernel commented Jan 20, 2016

test locally with jscp's test case ceph/ceph-qa-suite#787

@tchaikov
Copy link
Contributor

@ukernel just out of curiosity, how did you test the teuthology task locally? i assume you don't have a teuthology testbed "locally"? as i am debugging my test suite at ceph/ceph-qa-suite#795, which is also a teuthology task. and found that it's time consuming to test it in sepia, and waste the precious sepia lab resource when doing so.

@jcsp
Copy link
Contributor

jcsp commented Jan 20, 2016

@tchaikov it's the test runner for our cephfs tests (things in ceph-qa-suite/tasks/cephfs) that works with a vstart cluster (http://comments.gmane.org/gmane.comp.file-systems.ceph.devel/26151) -- I had exactly the same issue of developing tests in sepia being too slow, so wrote this. Unfortunately it doesn't apply to most of the non-cephfs tests, because they're not written against the python interface (CephFSTestCase).

@gregsfortytwo
Copy link
Member

What was this nlink test trying to do and why is it okay to just eliminate it?

@tchaikov
Copy link
Contributor

@jcsp thanks. seems there is long way to go to follow the cephfs CephFSTestCase's model. the rados tests are quite different.

@ukernel
Copy link
Contributor Author

ukernel commented Jan 25, 2016

I think purpose of the test is saving a few cpu cycles.

On Thu, Jan 21, 2016 at 1:19 PM, Gregory Farnum notifications@github.com
wrote:

What was this blink test trying to do and why is it okay to just eliminate
it?


Reply to this email directly or view it on GitHub
#7297 (comment).

@ukernel ukernel assigned gregsfortytwo and unassigned ukernel Jan 26, 2016
gregsfortytwo added a commit that referenced this pull request Jan 26, 2016
…-fs-testing

#7297

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
@gregsfortytwo
Copy link
Member

gregsfortytwo added a commit that referenced this pull request Jan 29, 2016
client: properly trim unlinked inode

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
@gregsfortytwo gregsfortytwo merged commit 63b4d62 into ceph:jewel Jan 29, 2016
@ukernel ukernel deleted the jewel-13903 branch June 14, 2016 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants