blob: 224d3829dbc07e1de2d2c877ca368976ce7f55c8 [file] [log] [blame]
Arvind M8e87d852018-01-29 00:04:29 -08001From 336d3aecf1375ef8585ccf3efdc946c08f264da3 Mon Sep 17 00:00:00 2001
Allen Martin685e0f82016-07-26 19:34:29 -07002From: Thomas Gleixner <tglx@linutronix.de>
3Date: Fri, 8 Jul 2011 16:35:35 +0200
Arvind M10268e72017-12-04 22:18:06 -08004Subject: [PATCH 156/366] fs/epoll: Do not disable preemption on RT
Allen Martin685e0f82016-07-26 19:34:29 -07005
6ep_call_nested() takes a sleeping lock so we can't disable preemption.
7The light version is enough since ep_call_nested() doesn't mind beeing
8invoked twice on the same CPU.
9
10Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Allen Martin685e0f82016-07-26 19:34:29 -070011---
12 fs/eventpoll.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/fs/eventpoll.c b/fs/eventpoll.c
Ishan Mittalb7998262017-01-17 16:11:50 +053016index 4c999ce..1a3de35 100644
Allen Martin685e0f82016-07-26 19:34:29 -070017--- a/fs/eventpoll.c
18+++ b/fs/eventpoll.c
19@@ -506,12 +506,12 @@ static int ep_poll_wakeup_proc(void *priv, void *cookie, int call_nests)
20 */
21 static void ep_poll_safewake(wait_queue_head_t *wq)
22 {
23- int this_cpu = get_cpu();
24+ int this_cpu = get_cpu_light();
25
26 ep_call_nested(&poll_safewake_ncalls, EP_MAX_NESTS,
27 ep_poll_wakeup_proc, NULL, wq, (void *) (long) this_cpu);
28
29- put_cpu();
30+ put_cpu_light();
31 }
32
33 static void ep_remove_wait_queue(struct eppoll_entry *pwq)
34--
Arvind M10268e72017-12-04 22:18:06 -0800351.9.1
Allen Martin685e0f82016-07-26 19:34:29 -070036