linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Rik van Riel <riel@conectiva.com.br>
To: Marc-Christian Petersen <m.c.p@wolk-project.de>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Arjan van de Ven <arjanv@redhat.com>
Subject: Re: [PATCH] rmap 15c
Date: Fri, 31 Jan 2003 12:45:11 -0200 (BRST)	[thread overview]
Message-ID: <Pine.LNX.4.50L.0301311244280.2429-100000@imladris.surriel.com> (raw)
In-Reply-To: <200301301709.09692.m.c.p@wolk-project.de>

On Thu, 30 Jan 2003, Marc-Christian Petersen wrote:
> On Thursday 30 January 2003 14:32, Rik van Riel wrote:
>
> Hi Rik,
>
> > rmap 15c:
> >   - backport and audit akpm's reliable pte_chain alloc
> >     code from 2.5                                         (me)
> >   - reintroduce cache size tuning knobs in /proc          (me)
> >     | on very, very popular request
>
> GREAT to see this. Already merged for wolk4.0s-pre10 :)

Better merge this little patch, too.  Arjan spotted this
bug and now I'm not sure why rmap15c worked at all, let
alone why it survived a night of stress testing ... ;)

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.793   -> 1.794
#	           fs/exec.c	1.24    -> 1.25
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/01/31	riel@imladris.surriel.com	1.794
# uh oh, here we could end up freeing a used pte_chain
# (thanks arjan)
# --------------------------------------------
#
diff -Nru a/fs/exec.c b/fs/exec.c
--- a/fs/exec.c	Fri Jan 31 12:44:30 2003
+++ b/fs/exec.c	Fri Jan 31 12:44:30 2003
@@ -308,7 +308,7 @@
 	flush_dcache_page(page);
 	flush_page_to_ram(page);
 	set_pte(pte, pte_mkdirty(pte_mkwrite(mk_pte(page, PAGE_COPY))));
-	page_add_rmap(page, pte, pte_chain);
+	pte_chain = page_add_rmap(page, pte, pte_chain);
 	tsk->mm->rss++;
 	pte_unmap(pte);
 	spin_unlock(&tsk->mm->page_table_lock);

Rik
-- 
Bravely reimplemented by the knights who say "NIH".
http://www.surriel.com/		http://guru.conectiva.com/
Current spamtrap:  <a href=mailto:"october@surriel.com">october@surriel.com</a>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/

  reply	other threads:[~2003-01-31 14:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-30 13:32 Rik van Riel
2003-01-30 16:09 ` Marc-Christian Petersen
2003-01-31 14:45   ` Rik van Riel [this message]
2003-01-31 15:35     ` Marc-Christian Petersen

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=Pine.LNX.4.50L.0301311244280.2429-100000@imladris.surriel.com \
    --to=riel@conectiva.com.br \
    --cc=arjanv@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=m.c.p@wolk-project.de \
    /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