Hugh Dickins f412ac08c9 [PATCH] mm: fix rss and mmlist locking
A couple of oddities were guarded by page_table_lock, no longer properly
guarded when that is split.

The mm_counters of file_rss and anon_rss: make those an atomic_t, or an
atomic64_t if the architecture supports it, in such a case.  Definitions by
courtesy of Christoph Lameter: who spent considerable effort on more scalable
ways of counting, but found insufficient benefit in practice.

And adding an mm with swap to the mmlist for swapoff: the list is well-
guarded by its own lock, but the list_empty check now has to be repeated
inside it.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 21:40:42 -07:00
..
2005-10-29 21:40:39 -07:00
2005-10-29 21:40:42 -07:00
2005-06-24 00:06:41 -07:00
2005-10-29 21:40:40 -07:00
2005-10-28 08:16:51 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:39 -07:00
2005-06-24 00:06:41 -07:00
2005-10-28 08:16:47 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:40 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:42 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:42 -07:00
2005-10-29 21:40:35 -07:00
2005-04-16 15:20:36 -07:00
2005-10-29 21:40:40 -07:00
2005-10-29 21:40:42 -07:00