diff options
author | Yaowei Bai | 2016-09-14 13:03:39 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2016-09-28 12:21:46 +0200 |
commit | 6b9424689a32bb76942ec39f6d5c60b72eb002e0 (patch) | |
tree | d3b4a020db45b5b41f3c00018736bcdf400c5fd3 /hw/core/machine.c | |
parent | block: mirror: fix wrong comment of mirror_start (diff) | |
download | qemu-6b9424689a32bb76942ec39f6d5c60b72eb002e0.tar.gz qemu-6b9424689a32bb76942ec39f6d5c60b72eb002e0.tar.xz qemu-6b9424689a32bb76942ec39f6d5c60b72eb002e0.zip |
aio-posix: avoid unnecessary aio_epoll_enabled() calls
As epoll whether enabled or not is a global setting, we can just
check it only once rather than checking it with every node iteration.
Through this we can avoid a lot of checks when epoll is not enabled.
Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
Reviewed-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Message-id: 1473851019-7005-3-git-send-email-baiyaowei@cmss.chinamobile.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/core/machine.c')
0 files changed, 0 insertions, 0 deletions