diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-07-08 16:35:35 +0200 |
---|---|---|
committer | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2016-02-13 00:36:18 +0100 |
commit | ad5d2b65a2866708a1cac33d542ada4e066d6a33 (patch) | |
tree | 4d5b0e6307df1eff88aabb3e06e0ca010b8742ff | |
parent | 1996addcc9cd74550a539213e9ba0d768d22b3ac (diff) | |
download | rt-linux-ad5d2b65a2866708a1cac33d542ada4e066d6a33.tar.gz |
fs/epoll: Do not disable preemption on RT
ep_call_nested() takes a sleeping lock so we can't disable preemption.
The light version is enough since ep_call_nested() doesn't mind beeing
invoked twice on the same CPU.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | fs/eventpoll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index 1e009cad8d5ca..d0c12504d3b42 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -505,12 +505,12 @@ static int ep_poll_wakeup_proc(void *priv, void *cookie, int call_nests) */ static void ep_poll_safewake(wait_queue_head_t *wq) { - int this_cpu = get_cpu(); + int this_cpu = get_cpu_light(); ep_call_nested(&poll_safewake_ncalls, EP_MAX_NESTS, ep_poll_wakeup_proc, NULL, wq, (void *) (long) this_cpu); - put_cpu(); + put_cpu_light(); } static void ep_remove_wait_queue(struct eppoll_entry *pwq) |