Skip to content

Commit

Permalink
fix(eventfd): add explicit guard drop to avoid deadlock
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Feb 14, 2024
1 parent ba8c951 commit d067df5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fd/eventfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ impl ObjectInterface for EventFd {
}
}

drop(guard);

future::poll_fn(|cx| {
if result.is_empty() {
let mut pinned = core::pin::pin!(self.state.lock());
Expand Down

0 comments on commit d067df5

Please sign in to comment.