diff options
| author | John Hubbard <[email protected]> | 2020-06-03 15:56:40 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-06-03 20:09:42 -0700 |
| commit | f81cd178ecfd0806c1d2859cfe0a162d80c81a69 (patch) | |
| tree | 7abc36f482d48e1add0a8a9a573be4bebd167417 /tools/perf/scripts/python/netdev-times.py | |
| parent | 2170ecfa768850bb29487baa3101c993ab7d7402 (diff) | |
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 <[email protected]>
Signed-off-by: John Hubbard <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Cc: Jason Gunthorpe <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions