]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hmm: invalidate device page table at start of invalidation
authorJérôme Glisse <jglisse@redhat.com>
Tue, 30 Oct 2018 22:04:28 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Oct 2018 15:54:12 +0000 (08:54 -0700)
commit4d71a870b9664615b75c9a867afb10cd5f3db220
tree95cea7737f03580ba4aad93b80b070974832d857
parent1568adb9c8b25e0d7b787834e0603d0ca37a95af
mm/hmm: invalidate device page table at start of invalidation

Invalidate device page table at start of invalidation and invalidate in
progress CPU page table snapshooting at both start and end of any
invalidation.

This is helpful when device need to dirty page because the device page
table report the page as dirty.  Dirtying page must happen in the start
mmu notifier callback and not in the end one.

Link: http://lkml.kernel.org/r/20181019160442.18723-7-jglisse@redhat.com
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hmm.c