[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <676ce1b3-6c72-011e-3a4f-723945db3d31@intel.com>
Date: Sun, 9 Jul 2023 21:25:30 +0800
From: "Yin, Fengwei" <fengwei.yin@...el.com>
To: Matthew Wilcox <willy@...radead.org>
CC: David Hildenbrand <david@...hat.com>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>, <yuzhao@...gle.com>,
<ryan.roberts@....com>, <shy828301@...il.com>,
<akpm@...ux-foundation.org>
Subject: Re: [RFC PATCH 0/3] support large folio for mlock
On 7/8/2023 12:02 PM, Matthew Wilcox wrote:
> I would be tempted to allocate memory & copy to the new mlocked VMA.
> The old folio will go on the deferred_list and be split later, or its
> valid parts will be written to swap and then it can be freed.
If the large folio splitting failure is because of GUP pages, can we
do copy here?
Let's say, if the GUP page is target of DMA operation and DMA operation
is ongoing. We allocated a new page and copy GUP page content to the
new page, the data in the new page can be corrupted.
Regards
Yin, Fengwei
Powered by blists - more mailing lists