forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commitfa41b90
mm/thp: do not wait for lock_page() in deferred_split_scan()
deferred_split_scan() gets called from reclaim path. Waiting for pagelock may lead to deadlock there.Replace lock_page() with trylock_page() and skip the page if we failedto lock it. We will get to the page on the next scan.Link:http://lkml.kernel.org/r/20180315150747.31945-1-kirill.shutemov@linux.intel.comFixes:9a98225 ("thp: introduce deferred_split_huge_page()")Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>Acked-by: Michal Hocko <mhocko@suse.com>Cc: <stable@vger.kernel.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parentfece202 commitfa41b90
1 file changed
+3
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2783 | 2783 |
| |
2784 | 2784 |
| |
2785 | 2785 |
| |
2786 |
| - | |
| 2786 | + | |
| 2787 | + | |
2787 | 2788 |
| |
2788 | 2789 |
| |
2789 | 2790 |
| |
2790 | 2791 |
| |
| 2792 | + | |
2791 | 2793 |
| |
2792 | 2794 |
| |
2793 | 2795 |
| |
|
0 commit comments
Comments
(0)