]> git.karo-electronics.de Git - karo-tx-linux.git/commit
epoll: use RCU to protect wakeup_source in epitem
authorEric Wong <normalperson@yhbt.net>
Tue, 26 Mar 2013 23:25:07 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:30 +0000 (17:12 +1100)
commitfba82035fa5f7bfeda03c68d6490496cf93faba5
tree403004fd0f7571a806ee4c300ff5589b201536c4
parent5b81f2f6843b89e01e24c8104efd6ab928c7cfc0
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