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
test/fsx: Remove the dead code associated with aio backend #14905
Conversation
src/test/librbd/fsx.cc
Outdated
@@ -2504,8 +2504,10 @@ __aio_rw(int rw, int fd, char *buf, unsigned len, unsigned offset) | |||
} while (ret == -EINTR); | |||
|
|||
if (ret != 1) { | |||
if (ret == 0) | |||
if (ret == 0) { |
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.
please note that this is dead code in ceph. it's never executed in the ceph variant of fsx. instead, we use {p,librbd_}{write,read}
for kbd/rbd-nbd and rbd modes. i wonder if we can just remove the aio backend for the read/write tests.
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.
@tchaikov I'm fine w/ removing the dead code
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.
OK, I'll close it later
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.
Maybe I could upload a new patch to remove these dead code ?
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.
@johnzzpcrystal Sounds good to me -- just force push your changes to the existing branch.
@johnzzpcrystal Please squash your three commits down into a single commit (since the first two will essentially be dropped by the third). |
Signed-off-by: Zhou Zhengping <johnzzpcrystal@gmail.com>
@dillaman, Could this be merged ? |
@johnzzpcrystal i am running this PR through the rados test suite. but we might need to run it through the rbd suite also. |
@tchaikov, Thanks a lot ! |
@tchaikov Yes, it needs to go through an rbd suite run |
oops! didn't see the rbd comment. hopefully this one is okay. |
No description provided.