All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] always lock the root anon_vma
@ 2010-05-12 17:38 ` Rik van Riel
  0 siblings, 0 replies; 102+ messages in thread
From: Rik van Riel @ 2010-05-12 17:38 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Mel Gorman, Andrea Arcangeli, Minchan Kim, Linux-MM,
	KAMEZAWA Hiroyuki, LKML, Linus Torvalds

This patch series implements Linus's suggestion of always locking the
root anon_vma.  Because the lock in other anon_vmas no longer protects
anything at all, we cannot do the "lock dance" that Mel's earlier
patches implements and instead need a root pointer in the anon_vma.

The only subtlety these patches rely on is that the same_vma list
is ordered from new to old, with the root anon_vma at the very end.

This, together with the forward list walking in unlink_anon_vmas,
ensures that the root anon_vma is the last one freed.

The KSM refcount adds some additional complexity, because an anon_vma
can stick around after the processes it was attached to have already
exited.  Patch 5/5 deals with that issue.

^ permalink raw reply	[flat|nested] 102+ messages in thread
* [PATCH -v3 0/5] always lock the root anon_vma
@ 2010-05-26 19:38 Rik van Riel
  2010-05-26 19:38   ` Rik van Riel
  0 siblings, 1 reply; 102+ messages in thread
From: Rik van Riel @ 2010-05-26 19:38 UTC (permalink / raw)
  To: akpm
  Cc: linux-kernel, linux-mm, Mel Gorman, Andrea Arcangeli, Minchan Kim,
	KAMEZAWA Hiroyuki, Lee Schermerhorn

Andrew, here are the patches to always lock the root anon_vma,
ported to the latest -mm tree.

These patches implement Linus's idea of always locking the root
anon_vma and contain all the fixes and improvements suggested 
by Andrea.

This should fix the last bits of the anon_vma locking.

v3 is identical to v2, except I gathered up the Acked-by:s that
were on list already.

Patches 4 and 5 still need some reviewing and acks...

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

end of thread, other threads:[~2010-06-01  0:57 UTC | newest]

Thread overview: 102+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-12 17:38 [PATCH 0/5] always lock the root anon_vma Rik van Riel
2010-05-12 17:38 ` Rik van Riel
2010-05-12 17:39 ` [PATCH 1/5] rename anon_vma_lock to vma_lock_anon_vma Rik van Riel
2010-05-12 17:39   ` Rik van Riel
2010-05-12 20:57   ` Mel Gorman
2010-05-12 20:57     ` Mel Gorman
2010-05-13  0:30   ` KAMEZAWA Hiroyuki
2010-05-13  0:30     ` KAMEZAWA Hiroyuki
2010-05-12 17:39 ` [PATCH 3/5] track the root (oldest) anon_vma Rik van Riel
2010-05-12 17:39   ` Rik van Riel
2010-05-12 20:59   ` Mel Gorman
2010-05-12 20:59     ` Mel Gorman
2010-05-12 21:01     ` Rik van Riel
2010-05-12 21:01       ` Rik van Riel
2010-05-13  0:38   ` KAMEZAWA Hiroyuki
2010-05-13  0:38     ` KAMEZAWA Hiroyuki
2010-05-13  2:25     ` Rik van Riel
2010-05-13  2:25       ` Rik van Riel
2010-05-14  0:04       ` KAMEZAWA Hiroyuki
2010-05-14  0:04         ` KAMEZAWA Hiroyuki
2010-05-12 17:40 ` [PATCH 4/5] always lock " Rik van Riel
2010-05-12 17:40   ` Rik van Riel
2010-05-12 21:02   ` Mel Gorman
2010-05-12 21:02     ` Mel Gorman
2010-05-12 21:08     ` Rik van Riel
2010-05-12 21:08       ` Rik van Riel
2010-05-13  9:54       ` Mel Gorman
2010-05-13  9:54         ` Mel Gorman
2010-05-13 14:33         ` [PATCH -v2 " Rik van Riel
2010-05-13 14:33           ` Rik van Riel
2010-05-13 21:09           ` Andrew Morton
2010-05-13 21:09             ` Andrew Morton
2010-05-13 22:50             ` Rik van Riel
2010-05-13 22:50               ` Rik van Riel
2010-05-14  9:33               ` Mel Gorman
2010-05-14  9:33                 ` Mel Gorman
2010-05-26  4:00             ` Rik van Riel
2010-05-26  4:00               ` Rik van Riel
2010-05-26  4:15               ` Andrew Morton
2010-05-26  4:15                 ` Andrew Morton
2010-05-26  5:46                 ` james toy
2010-05-26  5:46                   ` james toy
2010-06-01  0:57                   ` james toy
2010-06-01  0:57                     ` james toy
2010-05-26 15:24               ` [PATCH -v2 0/5] always lock the root anon_vma Rik van Riel
2010-05-26 15:24                 ` Rik van Riel
2010-05-26 15:25                 ` [PATCH 1/5] rename anon_vma_lock to vma_lock_anon_vma Rik van Riel
2010-05-26 15:25                   ` Rik van Riel
2010-05-26 17:25                   ` Linus Torvalds
2010-05-26 17:25                     ` Linus Torvalds
2010-05-26 19:01                     ` Rik van Riel
2010-05-26 19:01                       ` Rik van Riel
2010-05-26 19:25                       ` Linus Torvalds
2010-05-26 19:25                         ` Linus Torvalds
2010-05-26 19:35                         ` Rik van Riel
2010-05-26 19:35                           ` Rik van Riel
2010-05-26 15:25                 ` [PATCH 2/5] change direct call of spin_lock(anon_vma->lock) to inline function Rik van Riel
2010-05-26 15:25                   ` Rik van Riel
2010-05-26 15:26                 ` [PATCH 3/5] track the root (oldest) anon_vma Rik van Riel
2010-05-26 15:26                   ` Rik van Riel
2010-05-26 15:27                 ` [PATCH 4/5] always lock " Rik van Riel
2010-05-26 15:27                   ` Rik van Riel
2010-05-26 15:27                 ` [PATCH 5/5] extend KSM refcounts to the anon_vma root Rik van Riel
2010-05-26 15:27                   ` Rik van Riel
2010-05-12 21:55   ` [PATCH 4/5] always lock the root (oldest) anon_vma Linus Torvalds
2010-05-12 21:55     ` Linus Torvalds
2010-05-12 22:18     ` Rik van Riel
2010-05-12 22:18       ` Rik van Riel
2010-05-12 22:26       ` Linus Torvalds
2010-05-12 22:26         ` Linus Torvalds
2010-05-12 17:41 ` [PATCH 5/5] extend KSM refcounts to the anon_vma root Rik van Riel
2010-05-12 17:41   ` Rik van Riel
2010-05-12 21:07   ` Mel Gorman
2010-05-12 21:07     ` Mel Gorman
2010-05-12 21:09     ` Rik van Riel
2010-05-12 21:09       ` Rik van Riel
2010-05-13 11:26       ` Mel Gorman
2010-05-13 11:26         ` Mel Gorman
2010-05-13 13:11         ` Rik van Riel
2010-05-13 13:11           ` Rik van Riel
2010-05-13 13:24           ` Mel Gorman
2010-05-13 13:24             ` Mel Gorman
2010-05-13 14:34             ` [PATCH -v2 " Rik van Riel
2010-05-13 14:34               ` Rik van Riel
2010-05-19  1:05               ` Andrea Arcangeli
2010-05-19  1:05                 ` Andrea Arcangeli
2010-05-12 17:41 ` [PATCH 2/5] change direct call of spin_lock(anon_vma->lock) to inline function Rik van Riel
2010-05-12 17:41   ` Rik van Riel
2010-05-12 20:58   ` Mel Gorman
2010-05-12 20:58     ` Mel Gorman
2010-05-13  0:32   ` KAMEZAWA Hiroyuki
2010-05-13  0:32     ` KAMEZAWA Hiroyuki
2010-05-20 22:42 ` [PATCH 6/5] adjust mm_take_all_locks to anon-vma-root locking Andrea Arcangeli
2010-05-20 22:42   ` Andrea Arcangeli
2010-05-20 23:07   ` Rik van Riel
2010-05-20 23:07     ` Rik van Riel
  -- strict thread matches above, loose matches on Subject: below --
2010-05-26 19:38 [PATCH -v3 0/5] always lock the root anon_vma Rik van Riel
2010-05-26 19:38 ` [PATCH 1/5] rename anon_vma_lock to vma_lock_anon_vma Rik van Riel
2010-05-26 19:38   ` Rik van Riel
2010-05-26 20:33   ` Larry Woodman
2010-05-26 20:33     ` Larry Woodman
2010-05-27 13:44   ` Minchan Kim
2010-05-27 13:44     ` Minchan Kim

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.