From: Jeff Moyer Date: Wed, 5 Dec 2007 07:45:02 +0000 (-0800) Subject: aio: only account I/O wait time in read_events if there are active requests X-Git-Tag: v2.6.24-rc5~105 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e00ba3dae077f54cfd2af42e939a618caa7a3bca;p=pandora-kernel.git aio: only account I/O wait time in read_events if there are active requests On 2.6.24, top started showing 100% iowait on one CPU when a UML instance was running (but completely idle). The UML code sits in io_getevents waiting for an event to be submitted and completed. Fix this by checking ctx->reqs_active before scheduling to determine whether or not we are waiting for I/O. Signed-off-by: Jeff Moyer Cc: Zach Brown Cc: Miklos Szeredi Cc: Jeff Dike Cc: "Rafael J. Wysocki" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed