projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8da00ed
)
pagemap: remove remaining unneeded spin_lock()
author
Naoya Horiguchi
<
[email protected]
>
Thu, 29 Mar 2012 20:58:17 +0000
(13:58 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 29 Mar 2012 21:06:43 +0000
(14:06 -0700)
Commit
025c5b2451e4
("thp: optimize away unnecessary page table
locking") moves spin_lock() into pmd_trans_huge_lock() in order to avoid
locking unless pmd is for thp. So this spin_lock() is a bug.
Reported-by: Sasha Levin <
[email protected]
>
Signed-off-by: Naoya Horiguchi <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/proc/task_mmu.c
patch
|
blob
|
history
diff --git
a/fs/proc/task_mmu.c
b/fs/proc/task_mmu.c
index c283832d411d4ea79170210e68fb27f008aa49ea..2b9a7607cbd5496084ec386fcc2377752ab75107 100644
(file)
--- a/
fs/proc/task_mmu.c
+++ b/
fs/proc/task_mmu.c
@@
-783,7
+783,6
@@
static int pagemap_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end,
/* find the first VMA at or above 'addr' */
vma = find_vma(walk->mm, addr);
- spin_lock(&walk->mm->page_table_lock);
if (pmd_trans_huge_lock(pmd, vma) == 1) {
for (; addr != end; addr += PAGE_SIZE) {
unsigned long offset;