]> Git Repo - linux.git/commit - mm/mlock.c
mlock: do not hold mmap_sem for extended periods of time
authorMichel Lespinasse <[email protected]>
Thu, 13 Jan 2011 23:46:14 +0000 (15:46 -0800)
committerLinus Torvalds <[email protected]>
Fri, 14 Jan 2011 01:32:36 +0000 (17:32 -0800)
commit53a7706d5ed8f1a53ba062b318773160cc476dde
treea1990d90d5af3686b7a83b2bbc2ae6463971efc5
parent5fdb2002131cd4e210b9638a4fc932ec7be491d1
mlock: do not hold mmap_sem for extended periods of time

__get_user_pages gets a new 'nonblocking' parameter to signal that the
caller is prepared to re-acquire mmap_sem and retry the operation if
needed.  This is used to split off long operations if they are going to
block on a disk transfer, or when we detect contention on the mmap_sem.

[[email protected]: remove ref to rwsem_is_contended()]
Signed-off-by: Michel Lespinasse <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Nick Piggin <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/internal.h
mm/memory.c
mm/mlock.c
mm/nommu.c
This page took 0.05877 seconds and 4 git commands to generate.