]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: ensure one can try to get user pages without locking or faulting
authorKris Van Hees <kris.van.hees@oracle.com>
Tue, 29 Apr 2014 06:16:48 +0000 (02:16 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Thu, 1 May 2014 13:12:45 +0000 (09:12 -0400)
commit5a436ea657f248b401aa463aafe3c456f65e11a3
treec288c8926958ff56fc8b5d0d349af68aa9a4e1ee
parent81e24eecf39f787a5ca6b99f6a1ea1af7483e931
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 <kris.van.hees@oracle.com>
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
dtrace/dtrace_isa.c