lkml.org 
[lkml]   [2001]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [BUG] vmalloc_area_pages() in 2.4.2-ac25
Tachino Nobuhiro wrote:
>
> vmalloc_area_pages() in 2.4.2-ac25 seems to be broken. It calls
> spin_lock(&init_mm.page_table_lock) twice and causes system hang.
>

Yes, it would. Delete the innermost lock and unlock.


--- linux-2.4.2-ac25/mm/vmalloc.c Mon Mar 26 21:38:38 2001
+++ ac/mm/vmalloc.c Mon Mar 26 21:52:05 2001
@@ -152,9 +152,7 @@
do {
pmd_t *pmd;

- spin_lock(&init_mm.page_table_lock); /* pmd_alloc requires this */
pmd = pmd_alloc(&init_mm, dir, address);
- spin_unlock(&init_mm.page_table_lock);
ret = -ENOMEM;
if (!pmd)
break;
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.100 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site