[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160602003702.GA18004@hori1.linux.bs1.fc.nec.co.jp>
Date: Thu, 2 Jun 2016 00:37:03 +0000
From: Naoya Horiguchi <n-horiguchi@...jp.nec.com>
To: "Kirill A. Shutemov" <kirill@...temov.name>
CC: Andrew Morton <akpm@...ux-foundation.org>,
Hugh Dickins <hughd@...gle.com>,
Mel Gorman <mgorman@...hsingularity.net>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Naoya Horiguchi <nao.horiguchi@...il.com>
Subject: Re: [PATCH v1] mm: thp: check pmd_trans_unstable() after
split_huge_pmd()
On Wed, Jun 01, 2016 at 12:39:57PM +0300, Kirill A. Shutemov wrote:
> On Wed, Jun 01, 2016 at 09:36:40AM +0900, Naoya Horiguchi wrote:
> > split_huge_pmd() doesn't guarantee that the pmd is normal pmd pointing to
> > pte entries, which can be checked with pmd_trans_unstable().
>
> Could you be more specific on when we don't have normal ptes after
> split_huge_pmd? Race with other thread? DAX?
Actually I don't have any such specific case in mind.
__split_huge_pmd could skip real split code. In most case the skip happens
when the pmd is already split and pointing to normal ptes, and I'm not sure
when the pmd could be none or bad ...
So my above description seems misstatement, I should say "some caller does
assertion and some does differently and some not, so let's do it in unified
manner".
- Naoya
>
> I guess we can modify split_huge_pmd() to return if the pmd was split or
> not.
Powered by blists - more mailing lists