Skip to content

Commit

Permalink
[rust-3p] Patch wakeup bug in async-io crate
Browse files Browse the repository at this point in the history
This just adds smol-rs/async-io#79 to our
distribution of async-io, as we've seen issues in infra like the one
reported there.

Bug: 47531
Bug: 126159
Change-Id: I393f35c131b9737ee8f5043b72162b6c3bf98dfb
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/871506
Reviewed-by: Adam Perry <[email protected]>
  • Loading branch information
sadmac7000 authored and Rebase bot committed Jun 16, 2023
1 parent 585b5bd commit 377c4ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions third_party/rust_crates/forks/async-io/README.fuchsia
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ Description:

async-io is used only on the host side to provide async usage of *nix IO primitives.

This is mainline, but will soon incorporate the patch from
https://github.com/smol-rs/async-io/pull/79/commits/71cd97d34ed8c652074b61ed4093b475e2fb4fdd
.
This is mainline with the patch from https://github.com/smol-rs/async-io/pull/79/commits/71cd97d34ed8c652074b61ed4093b475e2fb4fdd included.

This will be async-io mainline (~1.12.0) with a patch.
This is async-io mainline (~1.12.0) with a patch.

There is nothing else special about this release the fork is cut from mainline.

Expand Down
2 changes: 1 addition & 1 deletion third_party/rust_crates/forks/async-io/src/reactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl Source {
panic::catch_unwind(|| w.wake()).ok();
}
state[dir].waker = Some(cx.waker().clone());
state[dir].ticks = Some((Reactor::get().ticker(), state[dir].tick));
state[dir].ticks = Some((state[dir].tick, 0));

// Update interest in this I/O handle.
if was_empty {
Expand Down

0 comments on commit 377c4ef

Please sign in to comment.