aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2019-05-23 10:36:46 -0300
committerJason Gunthorpe <[email protected]>2019-06-10 10:10:33 -0300
commitc8a53b2db0aec40d8b217936e1b7f3d840c50390 (patch)
treeea375fb462731dce8200eef3b650cd9acab2f1dd /scripts/gen_compile_commands.py
parente36acfe6c86d13eec62321e1e86a1ce287e52e7d (diff)
mm/hmm: Hold a mmgrab from hmm to mm
So long as a struct hmm pointer exists, so should the struct mm it is linked too. Hold the mmgrab() as soon as a hmm is created, and mmdrop() it once the hmm refcount goes to zero. Since mmdrop() (ie a 0 kref on struct mm) is now impossible with a !NULL mm->hmm delete the hmm_hmm_destroy(). Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: Jérôme Glisse <[email protected]> Reviewed-by: John Hubbard <[email protected]> Reviewed-by: Ralph Campbell <[email protected]> Reviewed-by: Ira Weiny <[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