Skip to content

mm: Clean up and document fault and RETRY mmap_sem

Steven Rostedt linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: Remove use of ALLOW_RETRY when RETRY_NOWAIT is setinclude/linux/mm.h mm/filemap.c mm/memory.c+10 -102 replies
2/2mm: Document handle_mm_fault()mm/memory.c+20 -25 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mm: Clean up and document fault and RETRY mmap_sem

On IRC, Russell King noticed that the code in arch/x86/mm/fault.c looked buggy with the retry loop and retaking the mmap_sem. But with further investigation it seems to be correct, but now handle_mm_fault() has subtle locking with the mmap_sem depending on what flags are set.

Unfortunately, there's no good comments about what is going on in the code. Doing various git blame, git show, I dug up the history and cleaned up the RETRY_NOWAIT and added documentation to the handle_mm_fault().

Steven Rostedt (2):
mm: Remove use of ALLOW_RETRY when RETRY_NOWAIT is set
mm: Document handle_mm_fault()

----

 include/linux/mm.h |    4 ++--
 mm/filemap.c       |   14 +++++++-------
 mm/memory.c        |   24 +++++++++++++++++++++---
 3 files changed, 30 insertions(+), 12 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>