]> 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>
Wed, 30 Apr 2014 19:02:17 +0000 (12:02 -0700)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:29:38 +0000 (15:29 +0100)
commit1799cf9b6a4f92814154a8846e746d5e4710fabc
treec907a984a71bf757505eb41477bce7e11998bda1
parent43ffeb1886504ee13b2d9b327dc1d228247078b4
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: 18653173

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Chuck Anderson <chuck.anderson@oracle.com>
Reviewed-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
include/linux/mm.h
mm/gup.c
mm/hugetlb.c