OSDN Git Service

aio-posix: avoid unnecessary aio_epoll_enabled() calls
authorYaowei Bai <baiyaowei@cmss.chinamobile.com>
Wed, 14 Sep 2016 11:03:39 +0000 (07:03 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 28 Sep 2016 10:21:46 +0000 (11:21 +0100)
commit6b9424689a32bb76942ec39f6d5c60b72eb002e0
treed3b4a020db45b5b41f3c00018736bcdf400c5fd3
parente7e4f9f950253ce5fb03f569868a21d6d7e3f8a2
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>
aio-posix.c