From: Fam Zheng Date: Thu, 6 Nov 2014 12:44:36 +0000 (+0800) Subject: aio: Skip timer for io_getevents if timeout=0 X-Git-Tag: omap-for-v3.20/drop-legacy-3517~87^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f785de588735306ec4d7c875caf9d28481c8b21;p=pandora-kernel.git 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: Fam Zheng Signed-off-by: Benjamin LaHaise --- Reading git-diff-tree failed