Skip to content

Commit 6b0f602

Browse files
committed
Fix #229
1 parent 2f73931 commit 6b0f602

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

monoio/src/driver/uring/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,8 @@ impl Drop for IoUringDriver {
583583

584584
impl Drop for UringInner {
585585
fn drop(&mut self) {
586+
// no need to wait for completion, as the kernel will clean up the ring asynchronically.
587+
let _ = self.uring.submitter().submit();
586588
unsafe {
587589
ManuallyDrop::drop(&mut self.uring);
588590
}

0 commit comments

Comments
 (0)