From d067df5c152a5274aa124443fd97a6ff59ce658f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Wed, 14 Feb 2024 10:45:28 +0100 Subject: [PATCH] fix(eventfd): add explicit guard drop to avoid deadlock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/fd/eventfd.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fd/eventfd.rs b/src/fd/eventfd.rs index 146f61e04e..1a4e206a75 100644 --- a/src/fd/eventfd.rs +++ b/src/fd/eventfd.rs @@ -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());