RE: [PATCH] thp: Fix deadlock situation in vma_adjust with huge page in page cache

2013-08-12 Thread Kirill A. Shutemov
Ning Qu wrote: > In vma_adjust, the current code grabs i_mmap_mutex before calling > vma_adjust_trans_huge. This used to be fine until huge page in page > cache comes in. The problem is the underlying function > split_file_huge_page will also grab the i_mmap_mutex before splitting > the huge page i

[PATCH] thp: Fix deadlock situation in vma_adjust with huge page in page cache

2013-08-09 Thread Ning Qu
In vma_adjust, the current code grabs i_mmap_mutex before calling vma_adjust_trans_huge. This used to be fine until huge page in page cache comes in. The problem is the underlying function split_file_huge_page will also grab the i_mmap_mutex before splitting the huge page in page cache. Obviously t

[PATCH] thp: Fix deadlock situation in vma_adjust with huge page in page cache.

2013-08-09 Thread Ning Qu
In vma_adjust, the current code grabs i_mmap_mutex before calling vma_adjust_trans_huge. This used to be fine until huge page in page cache comes in. The problem is the underlying function split_file_huge_page will also grab the i_mmap_mutex before splitting the huge page in page cache. Obviously t