From: Andrew Morton <akpm@digeo.com>
To: Dave McCracken <dmccr@us.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>, "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: install_page() lockup
Date: Tue, 22 Oct 2002 22:37:10 -0700 [thread overview]
Message-ID: <3DB63586.A3D4AC22@digeo.com> (raw)
I'm getting lockups in install_page() with shared pagetables
enabled. I haven't really delved into it. It happens under
heavy memory pressure on SMP.
Ingo's new patch is using install_page much more than we
used to (I don't think I've ever run it before), so we're
running fairly untested codepaths here.
I tried this:
mm/fremap.c | 2 ++
1 files changed, 2 insertions(+)
--- 25/mm/fremap.c~a Tue Oct 22 22:08:26 2002
+++ 25-akpm/mm/fremap.c Tue Oct 22 22:09:02 2002
@@ -72,7 +72,9 @@ int install_page(struct mm_struct *mm, s
pte_page_lock(ptepage);
if (page_count(ptepage) > 1) {
pte = pte_unshare(mm, pmd, addr);
+ pte_page_unlock(ptepage);
ptepage = pmd_page(*pmd);
+ pte_page_lock(ptepage);
} else
pte = pte_offset_map(pmd, addr);
} else {
.
Because doing a pte_page_lock(ptepage) and then losing
track of the page we just locked looks fishy. Didn't
help though.
Dave could you please review the code in there? It's probably
something simple.
Thanks.
--
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/
next reply other threads:[~2002-10-23 5:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-23 5:37 Andrew Morton [this message]
2002-10-23 6:49 ` Ingo Molnar
2002-10-23 15:55 ` Dave McCracken
2002-10-23 15:52 ` Dave McCracken
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=3DB63586.A3D4AC22@digeo.com \
--to=akpm@digeo.com \
--cc=dmccr@us.ibm.com \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
/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