From: Jeff Moyer Date: Mon, 28 Apr 2008 09:12:04 +0000 (-0700) Subject: aio: io_getevents() should return if io_destroy() is invoked X-Git-Tag: v2.6.26-rc1~1008 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e92adcba261fd391591bb63c1703185a04a41554;p=pandora-kernel.git aio: io_getevents() should return if io_destroy() is invoked This patch wakes up a thread waiting in io_getevents if another thread destroys the context. This was tested using a small program that spawns a thread to wait in io_getevents while the parent thread destroys the io context and then waits for the getevents thread to exit. Without this patch, the program hangs indefinitely. With the patch, the program exits as expected. Signed-off-by: Jeff Moyer Cc: Zach Brown Cc: Christopher Smith Cc: Benjamin LaHaise Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed