Cc: Jack Steiner <steiner@...>, Nick Piggin <npiggin@...>, <akpm@...>, Robin Holt <holt@...>, Avi Kivity <avi@...>, Izik Eidus <izike@...>, <kvm-devel@...>, Peter Zijlstra <a.p.zijlstra@...>, <general@...>, Steve Wise <swise@...>, Roland Dreier <rdreier@...>, Kanoj Sarcar <kanojsarcar@...>, <linux-kernel@...>, <linux-mm@...>, <daniel.blueman@...>
Still think that the lock here is not of too much use and can be easily
replaced by mmap_sem.
Andrew recomended local variables for parameters used multile times. This
means the mm parameter here.
Note also Andrew's comments on the use of 0x00ff...
One could avoid a hlist_for_each_entry_safe here by simply always deleting
the first object.
Also re the _notify variants: The binding to pte_clear_flush_young etc
will become a problem for notifiers that want to sleep because
pte_clear_flush is usually called with the pte lock held. See f.e.
try_to_unmap_one, page_mkclean_one etc.
It would be better if the notifier calls could be moved outside of the
pte lock.
--