Re: [Intel-gfx] [PATCH] shmem: fix pageflags after swapping DMA32 object

2016-11-07 Thread Kirill A. Shutemov
On Sun, Nov 06, 2016 at 08:08:29PM -0800, Hugh Dickins wrote: > If shmem_alloc_page() does not set PageLocked and PageSwapBacked, then > shmem_replace_page() needs to do so for itself. Without this, it puts > newpage on the wrong lru, re-unlocks the unlocked newpage, and system > descends into "Ba

[Intel-gfx] [PATCH] shmem: fix pageflags after swapping DMA32 object

2016-11-06 Thread Hugh Dickins
If shmem_alloc_page() does not set PageLocked and PageSwapBacked, then shmem_replace_page() needs to do so for itself. Without this, it puts newpage on the wrong lru, re-unlocks the unlocked newpage, and system descends into "Bad page" reports and freeze; or if CONFIG_DEBUG_VM=y, it hits an earlie