Skip to content

Commit d067df5

Browse files
committed
fix(eventfd): add explicit guard drop to avoid deadlock
Signed-off-by: Martin Kröning <[email protected]>
1 parent ba8c951 commit d067df5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fd/eventfd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ impl ObjectInterface for EventFd {
169169
}
170170
}
171171

172+
drop(guard);
173+
172174
future::poll_fn(|cx| {
173175
if result.is_empty() {
174176
let mut pinned = core::pin::pin!(self.state.lock());

0 commit comments

Comments
 (0)