aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2019-05-23 11:08:28 -0300
committerJason Gunthorpe <[email protected]>2019-06-18 12:11:16 -0300
commit47f245985a4f3e270b1e4f28aa49f4c939527981 (patch)
treeba0dcb5d040a33a32c50a9dbad6f467cc65f248d /scripts/gen_compile_commands.py
parent157816f3775f5c4df2c68ef0e3a100ada974aa2e (diff)
mm/hmm: Hold on to the mmget for the lifetime of the range
Range functions like hmm_range_snapshot() and hmm_range_fault() call find_vma, which requires hodling the mmget() and the mmap_sem for the mm. Make this simpler for the callers by holding the mmget() inside the range for the lifetime of the range. Other functions that accept a range should only be called if the range is registered. This has the side effect of directly preventing hmm_release() from happening while a range is registered. That means range->dead cannot be false during the lifetime of the range, so remove dead and hmm_mirror_mm_is_alive() entirely. Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: John Hubbard <[email protected]> Reviewed-by: Ralph Campbell <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Tested-by: Philip Yang <[email protected]>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions