summaryrefslogtreecommitdiffstats
path: root/mm/truncate.c
diff options
context:
space:
mode:
authorJohn Hubbard <jhubbard@nvidia.com>2020-06-04 00:56:40 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-04 05:09:42 +0200
commitf81cd178ecfd0806c1d2859cfe0a162d80c81a69 (patch)
tree7abc36f482d48e1add0a8a9a573be4bebd167417 /mm/truncate.c
parentdrm/i915: convert get_user_pages() --> pin_user_pages() (diff)
downloadlinux-f81cd178ecfd0806c1d2859cfe0a162d80c81a69.tar.xz
linux-f81cd178ecfd0806c1d2859cfe0a162d80c81a69.zip
mm/gup: might_lock_read(mmap_sem) in get_user_pages_fast()
Instead of scattering these assertions across the drivers, do this assertion inside the core of get_user_pages_fast*() functions. That also includes pin_user_pages_fast*() routines. Add a might_lock_read(mmap_sem) call to internal_get_user_pages_fast(). Suggested-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: John Hubbard <jhubbard@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Matthew Wilcox <willy@infradead.org> Cc: Michel Lespinasse <walken@google.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Link: http://lkml.kernel.org/r/20200522010443.1290485-1-jhubbard@nvidia.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions