From: Oleg Nesterov <oleg@redhat.com>
To: Frantisek Hrbata <fhrbata@redhat.com>
Cc: linux-kernel@vger.kernel.org, matt.fleming@linux.intel.com,
hughd@google.com
Subject: Re: [PATCH] exec: remove page_table_lock for mm counters in acct_arg_size()
Date: Thu, 14 Jul 2011 15:18:22 +0200 [thread overview]
Message-ID: <20110714131821.GA3177@redhat.com> (raw)
In-Reply-To: <1310649380-13492-1-git-send-email-fhrbata@redhat.com>
On 07/14, Frantisek Hrbata wrote:
>
> Commit 172703b mm: delete non-atomic mm counter implementation
> removed non-atomic mm counters implementation. I think there is no need to hold
> page_table_lock for add_mm_counter() when the splitted page table locks are not
> used. This patch removes the locking.
>
> Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
> ---
> fs/exec.c | 6 ------
> 1 files changed, 0 insertions(+), 6 deletions(-)
>
> diff --git a/fs/exec.c b/fs/exec.c
> index 6075a1e..e6fc5e1 100644
> --- a/fs/exec.c
> +++ b/fs/exec.c
> @@ -182,13 +182,7 @@ static void acct_arg_size(struct linux_binprm *bprm, unsigned long pages)
>
> 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
Heh. Thanks Frantisek, you are right. But this patch is already in mm-tree,
fs-execc-acct_arg_size-ptl-is-no-longer-needed-for-add_mm_counter.patch
Oleg.
next prev parent reply other threads:[~2011-07-14 13:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-14 13:16 Frantisek Hrbata
2011-07-14 13:18 ` Oleg Nesterov [this message]
2011-07-14 13:23 ` Frantisek Hrbata
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110714131821.GA3177@redhat.com \
--to=oleg@redhat.com \
--cc=fhrbata@redhat.com \
--cc=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®