From: Kris Van Hees Date: Tue, 29 Apr 2014 06:16:48 +0000 (-0400) Subject: dtrace: ensure one can try to get user pages without locking or faulting X-Git-Tag: v4.1.12-111.0.20170907_2225~3^2~3^2~87 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5a436ea657f248b401aa463aafe3c456f65e11a3;p=users%2Fjedix%2Flinux-maple.git 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 --- diff --git a/dtrace/dtrace_isa.c b/dtrace/dtrace_isa.c index fd5f6cf0252c1..18ead9c6ec08b 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)