]> Git Repo - linux.git/commit
mmu-notifiers: remove mmu notifier calls in apply_to_page_range()
authorJeremy Fitzhardinge <[email protected]>
Tue, 10 Aug 2010 00:19:52 +0000 (17:19 -0700)
committerLinus Torvalds <[email protected]>
Tue, 10 Aug 2010 03:45:03 +0000 (20:45 -0700)
commit57250a5bf0f6ff68dc339572adbd881a11f366fa
treeef11c141a9f89403bcd4b1fc705d672c0ff41818
parent58c37f6e0dfaaab85a3c11fcbf24451dfe70c721
mmu-notifiers: remove mmu notifier calls in apply_to_page_range()

It is not appropriate for apply_to_page_range() to directly call any mmu
notifiers, because it is a general purpose function whose effect depends
on what context it is called in and what the callback function does.

In particular, if it is being used as part of an mmu notifier
implementation, the recursive calls can be particularly problematic.

It is up to apply_to_page_range's caller to do any notifier calls if
necessary.  It does not affect any in-tree users because they all operate
on init_mm, and mmu notifiers only pertain to usermode mappings.

[[email protected]: remove unused local `start']
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Avi Kivity <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory.c
This page took 0.051818 seconds and 4 git commands to generate.