Skip to content

Commit

Permalink
Don't create two completion events for waking
Browse files Browse the repository at this point in the history
Just one is enough.
  • Loading branch information
Thomasdezeeuw committed Jan 14, 2024
1 parent 31a100c commit f752da0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ impl Submission {

pub(crate) unsafe fn wake(&mut self, ring_fd: RawFd) {
self.msg(ring_fd, u64::MAX, 0, 0);
self.no_completion_event();
}

/// Note that the argument `user_data` and `res` names are the same as the
Expand Down

0 comments on commit f752da0

Please sign in to comment.