* [PATCH] mempolicy: add missed spin_unlock in queue_pages_pte_range
@ 2016-01-12 22:21 Kirill A. Shutemov
0 siblings, 0 replies; only message in thread
From: Kirill A. Shutemov @ 2016-01-12 22:21 UTC (permalink / raw)
To: Andrew Morton, Sasha Levin; +Cc: linux-mm, Kirill A. Shutemov
We forgot to unlock ptl in case when huge pmd dissappered under us.
This patch can be folded into
"migrate_pages: try to split pages on queuing"
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
mm/mempolicy.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 496214bd82e2..973434eff9dc 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -510,6 +510,8 @@ static int queue_pages_pte_range(pmd_t *pmd, unsigned long addr,
if (ret)
return 0;
}
+ } else {
+ spin_unlock(ptl);
}
}
--
2.6.4
--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-12 22:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12 22:21 [PATCH] mempolicy: add missed spin_unlock in queue_pages_pte_range Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).