]> 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)
commita3c114ceb924f0f3889568bbf4c7ee44e645831f
tree95cea7737f03580ba4aad93b80b070974832d857
parent0cc30459075df9a839b0b81405a4fa53b7ce8e25
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