]> git.karo-electronics.de Git - karo-tx-linux.git/commit
epoll: use RCU to protect wakeup_source in epitem
authorEric Wong <normalperson@yhbt.net>
Wed, 20 Mar 2013 04:07:48 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:05 +0000 (16:34 +1100)
commit87534b58952cf967542cb09d057f450a5e1e04ec
tree5a3a05ec887219e0033c756e80bc51cc71c54220
parent59194c72a7aceb167fdf21e842873e038a31037d
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 <normalperson@yhbt.net>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: NeilBrown <neilb@suse.de>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/eventpoll.c