Re: [PATCHv2 19/28] thp: run vma_adjust_trans_huge() outside i_mmap_rwsem

From: Kirill A. Shutemov
Date: Tue Feb 16 2016 - 05:16:55 EST


On Fri, Feb 12, 2016 at 10:50:02AM -0800, Dave Hansen wrote:
> On 02/11/2016 06:21 AM, Kirill A. Shutemov wrote:
> > vma_addjust_trans_huge() splits pmd if it's crossing VMA boundary.
> > During split we munlock the huge page which requires rmap walk.
> > rmap wants to take the lock on its own.
>
> Which lock are you talking about here?

i_mmap_rwsem. It's in patch subject. I'll update body.

--
Kirill A. Shutemov