[PATCH] mm mremap freeze

From: Hugh Dickins (hugh@veritas.com)
Date: Mon Oct 21 2002 - 11:14:30 EST


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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:54 EST