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

rt: refactor driver, runtime, and op #197

Merged
merged 5 commits into from
Dec 6, 2022
Merged

Conversation

Noah-Kennedy
Copy link
Contributor

This cleans up a few different pieces and is a followup change from #196.

This cleans up a few different pieces and is a followup change from #196.
@Noah-Kennedy Noah-Kennedy marked this pull request as ready for review December 4, 2022 21:55
@Noah-Kennedy Noah-Kennedy requested a review from FrankReh December 4, 2022 22:07
Copy link
Collaborator

@FrankReh FrankReh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice. And quick. I'm setting this to 'request changes' really just to get your reaction to everything. If you don't want to change anything that's okay. Then I'll set to approved.

src/runtime/driver/handle.rs Show resolved Hide resolved
src/runtime/driver/mod.rs Outdated Show resolved Hide resolved
src/runtime/driver/mod.rs Show resolved Hide resolved
src/runtime/driver/mod.rs Outdated Show resolved Hide resolved
let _guard = tokio_rt.enter();
let async_driver_handle = AsyncFd::new(driver).unwrap();

local.spawn_local(drive_uring_wakes(async_driver_handle));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I may, I think 'driver' is still being used too much. Everything is a driver. Then nothing is. 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we should probably rename a bunch of the driver vars to driver_handle.

src/runtime/mod.rs Show resolved Hide resolved
@FrankReh
Copy link
Collaborator

FrankReh commented Dec 4, 2022

@Noah-Kennedy Oh, also make clippy happy.

@Noah-Kennedy
Copy link
Contributor Author

@FrankReh could you take a re-review?

Copy link
Collaborator

@FrankReh FrankReh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@Noah-Kennedy Noah-Kennedy merged commit cdedbfc into master Dec 6, 2022
@Noah-Kennedy Noah-Kennedy deleted the noah/cleanup-round-2 branch December 6, 2022 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants