From 2ee430a8890c83d30250cc7cd30ea42e5c7ead6a Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Wed, 17 Sep 2014 09:44:03 +0200 Subject: P-RES: allocation in pres_admit_task() must be atomic The kernel codepath calling into pres_admit_task() is holding some lock unrelated to LITMUS^RT. As a result, we need to pass GFP_ATOMIC, not just GFP_KERNEL, to kzalloc(). --- litmus/sched_pres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litmus/sched_pres.c b/litmus/sched_pres.c index 13a47a831794..49648ee9bfbc 100644 --- a/litmus/sched_pres.c +++ b/litmus/sched_pres.c @@ -264,7 +264,7 @@ static long pres_admit_task(struct task_struct *tsk) unsigned long flags; struct reservation *res; struct pres_cpu_state *state; - struct pres_task_state *tinfo = kzalloc(sizeof(*tinfo), GFP_KERNEL); + struct pres_task_state *tinfo = kzalloc(sizeof(*tinfo), GFP_ATOMIC); if (!tinfo) return -ENOMEM; -- cgit v1.2.2