Skip to content

Commit

Permalink
Fix io_uring management dead lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ClawSeven committed Dec 14, 2023
1 parent c416cd7 commit 1f2956b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libos/src/io_uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ impl UringSet {
let uring: KeyableArc<IoUring> = uring.into();
let mut map = self.urings.lock();
let mut state = map.get_mut(&uring).unwrap();
state.unregister_one_socket();
drop(map);

uring.disattach_fd(fd);
state.unregister_one_socket();
}
}

0 comments on commit 1f2956b

Please sign in to comment.