From 5a436ea657f248b401aa463aafe3c456f65e11a3 Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Tue, 29 Apr 2014 02:16:48 -0400 Subject: [PATCH] dtrace: ensure one can try to get user pages without locking or faulting This commit changes the FOLL_NOFAULT flag into a FOLL_IMMED flag, to more accurately convey its meaning, i.e. to request user pages without waiting for any locks and without servicing any page faults as a result of the request. This is necessary in order to request user pages from interrupt context. This also completes the implementation by ensuring that the PTE spinlock is checked rather than trying to lock it (and possibly get stuck in a deadlock spinning for it). Orabug: 18653713 Signed-off-by: Kris Van Hees Acked-by: Chuck Anderson --- dtrace/dtrace_isa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtrace/dtrace_isa.c b/dtrace/dtrace_isa.c index fd5f6cf0252c..18ead9c6ec08 100644 --- a/dtrace/dtrace_isa.c +++ b/dtrace/dtrace_isa.c @@ -267,7 +267,7 @@ static struct vm_area_struct *find_user_vma(struct task_struct *tsk, { struct vm_area_struct *vma = NULL; int nonblocking = 1; - int flags = FOLL_NOFAULT; + int flags = FOLL_IMMED; int ret; if (page) -- 2.50.1