diff options
| author | ZhangPeng <[email protected]> | 2023-04-10 21:39:28 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-04-18 16:29:54 -0700 |
| commit | 0d508c1f0e2c7cec76c141e9d2ebc3020d9e4be4 (patch) | |
| tree | d5ceb89ac42b0cf3f5a67ca96dcf8d15ed2f9115 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 07e6d4095c75bcf0bf511b36eecaceb3fbb91ad9 (diff) | |
userfaultfd: use kmap_local_page() in copy_huge_page_from_user()
kmap() and kmap_atomic() are being deprecated in favor of
kmap_local_page() which is appropriate for any thread local context.[1]
Let's replace the kmap() and kmap_atomic() with kmap_local_page() in
copy_huge_page_from_user(). When allow_pagefault is false, disable page
faults to prevent potential deadlock.[2]
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: ZhangPeng <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Nanyong Sun <[email protected]>
Cc: Sidhartha Kumar <[email protected]>
Cc: Vishal Moola (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions