From: Paton J. Lewis Date: Fri, 5 Oct 2012 00:13:39 +0000 (-0700) Subject: epoll: support for disabling items, and a self-test app X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~12^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03a7beb55b9fad363f0dd33e72ccf2d3e1c2a406;p=pandora-kernel.git epoll: support for disabling items, and a self-test app Enhanced epoll_ctl to support EPOLL_CTL_DISABLE, which disables an epoll item. If epoll_ctl doesn't return -EBUSY in this case, it is then safe to delete the epoll item in a multi-threaded environment. Also added a new test_epoll self- test app to both demonstrate the need for this feature and test it. Signed-off-by: Paton J. Lewis Cc: Alexander Viro Cc: Jason Baron Cc: Paul Holland Cc: Davide Libenzi Cc: Michael Kerrisk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed