From 5f785de588735306ec4d7c875caf9d28481c8b21 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Thu, 6 Nov 2014 20:44:36 +0800 Subject: [PATCH] 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-format-patch failed