Re: [PATCH 20/23] thp: handle file pages in split_huge_page()

2013-08-09 Thread Kirill A. Shutemov
Ning Qu wrote: > I just tried, and it seems working fine now without the deadlock anymore. I > can run some big internal test with about 40GB files in sysv shm. Just move > the line before the locking happens in vma_adjust, something as below, the > line number is not accurate because my patch is b

[PATCH 20/23] thp: handle file pages in split_huge_page()

2013-08-03 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" The base scheme is the same as for anonymous pages, but we walk by mapping->i_mmap rather then anon_vma->rb_root. When we add a huge page to page cache we take only reference to head page, but on split we need to take addition reference to all tail pages since they are