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

test/fsx: Remove the dead code associated with aio backend #14905

Merged
merged 1 commit into from May 10, 2017

Conversation

johnzzpcrystal
Copy link
Contributor

No description provided.

@@ -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) {
Copy link
Contributor

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.

Copy link

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

Copy link
Contributor Author

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

Copy link
Contributor Author

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 ?

Copy link

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.

@tchaikov tchaikov changed the title test: fix two error handling problems test/fsx: fix two error handling problems May 2, 2017
@tchaikov tchaikov requested a review from dillaman May 2, 2017 06:21
@johnzzpcrystal johnzzpcrystal changed the title test/fsx: fix two error handling problems test/fsx: Remove the dead code associated with aio backend May 3, 2017
@dillaman
Copy link

dillaman commented May 3, 2017

@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>
@johnzzpcrystal
Copy link
Contributor Author

@dillaman, Could this be merged ?

@tchaikov
Copy link
Contributor

tchaikov commented May 9, 2017

@johnzzpcrystal i am running this PR through the rados test suite. but we might need to run it through the rbd suite also.

@johnzzpcrystal
Copy link
Contributor Author

@tchaikov, Thanks a lot !

@dillaman
Copy link

dillaman commented May 9, 2017

@tchaikov Yes, it needs to go through an rbd suite run

@liewegas liewegas merged commit bd71ca3 into ceph:master May 10, 2017
@liewegas
Copy link
Member

oops! didn't see the rbd comment. hopefully this one is okay.

@johnzzpcrystal johnzzpcrystal deleted the aio branch May 10, 2017 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants