public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] acct_arg_size: ptl is no longer needed for add_mm_counter()
@ 2011-07-13 19:39 Oleg Nesterov
  2011-07-14 13:44 ` Matt Fleming
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Nesterov @ 2011-07-13 19:39 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Matt Fleming, Dave Hansen, KAMEZAWA Hiroyuki, linux-kernel

acct_arg_size() takes ->page_table_lock around add_mm_counter()
if !SPLIT_RSS_COUNTING. This is no needed after 172703b0
"mm: delete non-atomic mm counter implementation".

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
---

 fs/exec.c |    7 -------
 1 file changed, 7 deletions(-)

--- ptrace/fs/exec.c~acct_arg_size-no-ptl	2011-07-10 16:20:01.000000000 +0200
+++ ptrace/fs/exec.c	2011-07-13 21:36:29.000000000 +0200
@@ -181,14 +181,7 @@ static void acct_arg_size(struct linux_b
 		return;
 
 	bprm->vma_pages = pages;
-
-#ifdef SPLIT_RSS_COUNTING
 	add_mm_counter(mm, MM_ANONPAGES, diff);
-#else
-	spin_lock(&mm->page_table_lock);
-	add_mm_counter(mm, MM_ANONPAGES, diff);
-	spin_unlock(&mm->page_table_lock);
-#endif
 }
 
 static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,


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

end of thread, other threads:[~2011-07-14 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13 19:39 [PATCH] acct_arg_size: ptl is no longer needed for add_mm_counter() Oleg Nesterov
2011-07-14 13:44 ` Matt Fleming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox