forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commit0a85e51
thp: reduce indentation level in change_huge_pmd()
Patch series "thp: fix few MADV_DONTNEED races"For MADV_DONTNEED to work properly with huge pages, it's critical to notclear pmd intermittently unless you hold down_write(mmap_sem).Otherwise MADV_DONTNEED can miss the THP which can lead to userspacebreakage.See example of such race in commit message of patch 2/4.All these races are found by code inspection. I haven't seen themtriggered. I don't think it's worth to apply them to stable@.This patch (of 4):Restructure code in preparation for a fix.Link:http://lkml.kernel.org/r/20170302151034.27829-2-kirill.shutemov@linux.intel.comSigned-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>Acked-by: Vlastimil Babka <vbabka@suse.cz>Cc: Andrea Arcangeli <aarcange@redhat.com>Cc: Hillf Danton <hillf.zj@alibaba-inc.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 parent76e32a2 commit0a85e51
1 file changed
+26
-26
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1724 | 1724 |
| |
1725 | 1725 |
| |
1726 | 1726 |
| |
1727 |
| - | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
1728 | 1730 |
| |
1729 | 1731 |
| |
1730 |
| - | |
1731 |
| - | |
1732 |
| - | |
1733 |
| - | |
| 1732 | + | |
| 1733 | + | |
1734 | 1734 |
| |
1735 |
| - | |
1736 |
| - | |
1737 |
| - | |
1738 |
| - | |
1739 |
| - | |
1740 |
| - | |
1741 |
| - | |
1742 |
| - | |
1743 |
| - | |
| 1735 | + | |
| 1736 | + | |
1744 | 1737 |
| |
1745 |
| - | |
1746 |
| - | |
1747 |
| - | |
1748 |
| - | |
1749 |
| - | |
1750 |
| - | |
1751 |
| - | |
1752 |
| - | |
1753 |
| - | |
1754 |
| - | |
1755 |
| - | |
1756 |
| - | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
1757 | 1745 |
| |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1758 | 1758 |
| |
1759 | 1759 |
| |
1760 | 1760 |
| |
|
0 commit comments
Comments
(0)