From: Eric Wong Date: Tue, 30 Apr 2013 22:27:39 +0000 (-0700) Subject: epoll: use RCU to protect wakeup_source in epitem X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~88^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eea1d585917c538d90bc26fda5d8e53796feada2;p=pandora-kernel.git epoll: use RCU to protect wakeup_source in epitem This prevents wakeup_source destruction when a user hits the item with EPOLL_CTL_MOD while ep_poll_callback is running. Tested with CONFIG_SPARSE_RCU_POINTER=y and "make fs/eventpoll.o C=2" Signed-off-by: Eric Wong Cc: Alexander Viro Cc: Arve Hjønnevåg Cc: Davide Libenzi Cc: Eric Dumazet Cc: NeilBrown Cc: "Rafael J. Wysocki" Cc: "Paul E. McKenney" Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed