Skip to content
Commit 5f785de5 authored by Fam Zheng's avatar Fam Zheng Committed by Benjamin LaHaise
Browse files

aio: Skip timer for io_getevents if timeout=0



In this case, it is basically a polling. Let's not involve timer at all
because that would hurt performance for application event loops.

In an arbitrary test I've done, io_getevents syscall elapsed time
reduces from 50000+ nanoseconds to a few hundereds.

Signed-off-by: default avatarFam Zheng <famz@redhat.com>
Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
parent e4a0d3e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment