From 907580949498d0b52b5350862108881ef4d55d47 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Tue, 23 Nov 2021 06:59:48 +0000 Subject: [PATCH] virtio-devices: Update some comments in epoll_helper.rs Make some comments more clear. Signed-off-by: Ziye Yang --- virtio-devices/src/epoll_helper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtio-devices/src/epoll_helper.rs b/virtio-devices/src/epoll_helper.rs index 8dab31916..2588ef0a0 100644 --- a/virtio-devices/src/epoll_helper.rs +++ b/virtio-devices/src/epoll_helper.rs @@ -34,7 +34,7 @@ pub const EPOLL_HELPER_EVENT_KILL: u16 = 1; pub const EPOLL_HELPER_EVENT_LAST: u16 = 15; pub trait EpollHelperHandler { - // Return true if execution of the loop should be stopped + // Return true if the loop execution should be stopped fn handle_event(&mut self, helper: &mut EpollHelper, event: &epoll::Event) -> bool; } @@ -151,7 +151,7 @@ impl EpollHelper { // Drain pause event after the device has been resumed. // This ensures the pause event has been seen by each - // and every thread related to this virtio device. + // thread related to this virtio device. let _ = self.pause_evt.read(); } _ => {