dm: iothread: fix bug in iothread handler

Fix the bug in iothread handler, the event should be read out so that the
next epoll_wait not return directly as the fd can still readable.

Tracked-On: #8181
Signed-off-by: Conghui <conghui.chen@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Conghui
2022-09-01 11:24:30 +08:00
committed by acrnsi-robot
parent fcd92f1c2f
commit 91cc0d5bf8
3 changed files with 11 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
struct iothread_mevent {
void (*run)(void *);
void *arg;
int fd;
};
int iothread_add(int fd, struct iothread_mevent *aevt);
int iothread_del(int fd);