linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: [PATCH] mm mremap freeze
Date: Mon, 21 Oct 2002 17:14:30 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0210211708030.16869-100000@localhost.localdomain> (raw)

mremap's move_one_page tried to lock src_page twice
#ifndef CONFIG_SHAREPTE (do I hear you hissing my disloyalty?)

--- 2.5.44-mm2/mm/mremap.c	Mon Oct 21 12:57:53 2002
+++ linux/mm/mremap.c	Mon Oct 21 16:46:58 2002
@@ -43,8 +43,8 @@
 		goto out_unlock;
 
 	src_page = pmd_page(*src_pmd);
-	pte_page_lock(src_page);
 #ifdef CONFIG_SHAREPTE
+	pte_page_lock(src_page);
 	/*
 	 * Unshare if necessary.  We unmap the return
 	 * pointer because we may need to map it nested later.

--
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:[~2002-10-21 16:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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.44.0210211708030.16869-100000@localhost.localdomain \
    --to=hugh@veritas.com \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /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