All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: Clean up and document fault and RETRY mmap_sem
@ 2011-06-28 16:47 ` Steven Rostedt
  0 siblings, 0 replies; 20+ messages in thread
From: Steven Rostedt @ 2011-06-28 16:47 UTC (permalink / raw)
  To: linux-kernel, linux-mm
  Cc: Andrew Morton, Linus Torvalds, Russell King, Thomas Gleixner,
	Peter Zijlstra

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(-)

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-06-29 12:44 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-28 16:47 [PATCH 0/2] mm: Clean up and document fault and RETRY mmap_sem Steven Rostedt
2011-06-28 16:47 ` Steven Rostedt
2011-06-28 16:47 ` [PATCH 1/2] mm: Remove use of ALLOW_RETRY when RETRY_NOWAIT is set Steven Rostedt
2011-06-28 16:47   ` Steven Rostedt
2011-06-29  9:38   ` Michel Lespinasse
2011-06-29  9:38     ` Michel Lespinasse
2011-06-29 12:43     ` Steven Rostedt
2011-06-29 12:43       ` Steven Rostedt
2011-06-28 16:47 ` [PATCH 2/2] mm: Document handle_mm_fault() Steven Rostedt
2011-06-28 16:47   ` Steven Rostedt
2011-06-28 16:59   ` Steven Rostedt
2011-06-28 16:59     ` Steven Rostedt
2011-06-28 17:02   ` Linus Torvalds
2011-06-28 17:02     ` Linus Torvalds
2011-06-28 17:22     ` Steven Rostedt
2011-06-28 17:22       ` Steven Rostedt
2011-06-28 17:09   ` Gleb Natapov
2011-06-28 17:09     ` Gleb Natapov
2011-06-28 17:16     ` Steven Rostedt
2011-06-28 17:16       ` Steven Rostedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.