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
hammer: tests: test_librbd_fsx: invalidate before discard in krbd mode #13230
Conversation
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de> (cherry picked from commit af14437)
We need to sync dirty pages before issuing BLKDISCARD, explained in a comment. Fixes: ceph#11448 Signed-off-by: Ilya Dryomov <idryomov@gmail.com> (cherry picked from commit bd05024)
Commit bd05024 ("test_librbd_fsx: flush before discard in krbd mode") added an fsync() before BLKDISCARD. Don't know what I was thinking at the time, but I missed the invalidate part, for which we need to use the BLKFLSBUF ioctl. Signed-off-by: Ilya Dryomov <idryomov@gmail.com> (cherry picked from commit f217865)
Pushed wip branch to Shaman, will test with: fail http://pulpito.ceph.com/smithfarm-2017-02-02_12:52:27-krbd-wip-18795-hammer-distro-basic-smithi/ |
@idryomov The test now fails with:
|
I guess this is the root cause? |
@smithfarm Need to use -k testing. trusty distro kernel (3.13.*) doesn't support discard. |
Re-testing with pass http://pulpito.ceph.com:80/smithfarm-2017-02-02_14:04:03-krbd-wip-18795-hammer-testing-basic-smithi/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hammer is EOL. |
http://tracker.ceph.com/issues/18795