Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-17 Thread Chris Mason
On 16 Jul 2020, at 6:15, Robbie Ko wrote: Kirill A. Shutemov 於 2020/7/15 下午4:11 寫道: On Wed, Jul 15, 2020 at 10:45:39AM +0800, Robbie Ko wrote: Kirill A. Shutemov 於 2020/7/14 下午6:19 寫道: On Tue, Jul 14, 2020 at 11:46:12AM +0200, Vlastimil Babka wrote: On 7/13/20 3:57 AM, Robbie Ko wrote:

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-16 Thread Robbie Ko
Kirill A. Shutemov 於 2020/7/15 下午4:11 寫道: On Wed, Jul 15, 2020 at 10:45:39AM +0800, Robbie Ko wrote: Kirill A. Shutemov 於 2020/7/14 下午6:19 寫道: On Tue, Jul 14, 2020 at 11:46:12AM +0200, Vlastimil Babka wrote: On 7/13/20 3:57 AM, Robbie Ko wrote: Vlastimil Babka 於 2020/7/10 下午11:31 寫道: On

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-15 Thread Kirill A. Shutemov
On Wed, Jul 15, 2020 at 10:45:39AM +0800, Robbie Ko wrote: > > Kirill A. Shutemov 於 2020/7/14 下午6:19 寫道: > > On Tue, Jul 14, 2020 at 11:46:12AM +0200, Vlastimil Babka wrote: > > > On 7/13/20 3:57 AM, Robbie Ko wrote: > > > > Vlastimil Babka 於 2020/7/10 下午11:31 寫道: > > > > > On 7/9/20 4:48 AM,

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-14 Thread Robbie Ko
Kirill A. Shutemov 於 2020/7/14 下午6:19 寫道: On Tue, Jul 14, 2020 at 11:46:12AM +0200, Vlastimil Babka wrote: On 7/13/20 3:57 AM, Robbie Ko wrote: Vlastimil Babka 於 2020/7/10 下午11:31 寫道: On 7/9/20 4:48 AM, robbieko wrote: From: Robbie Ko When a migrate page occurs, we first create a

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-14 Thread Robbie Ko
Vlastimil Babka 於 2020/7/14 下午5:46 寫道: On 7/13/20 3:57 AM, Robbie Ko wrote: Vlastimil Babka 於 2020/7/10 下午11:31 寫道: On 7/9/20 4:48 AM, robbieko wrote: From: Robbie Ko When a migrate page occurs, we first create a migration entry to replace the original pte, and then go to

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-14 Thread Kirill A. Shutemov
On Tue, Jul 14, 2020 at 11:46:12AM +0200, Vlastimil Babka wrote: > On 7/13/20 3:57 AM, Robbie Ko wrote: > > > > Vlastimil Babka 於 2020/7/10 下午11:31 寫道: > >> On 7/9/20 4:48 AM, robbieko wrote: > >>> From: Robbie Ko > >>> > >>> When a migrate page occurs, we first create a migration entry > >>> to

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-14 Thread Vlastimil Babka
On 7/13/20 3:57 AM, Robbie Ko wrote: > > Vlastimil Babka 於 2020/7/10 下午11:31 寫道: >> On 7/9/20 4:48 AM, robbieko wrote: >>> From: Robbie Ko >>> >>> When a migrate page occurs, we first create a migration entry >>> to replace the original pte, and then go to fallback_migrate_page >>> to execute a

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-12 Thread Robbie Ko
Vlastimil Babka 於 2020/7/10 下午11:31 寫道: On 7/9/20 4:48 AM, robbieko wrote: From: Robbie Ko When a migrate page occurs, we first create a migration entry to replace the original pte, and then go to fallback_migrate_page to execute a writeout if the migratepage is not supported. In the

Re: [PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-10 Thread Vlastimil Babka
On 7/9/20 4:48 AM, robbieko wrote: > From: Robbie Ko > > When a migrate page occurs, we first create a migration entry > to replace the original pte, and then go to fallback_migrate_page > to execute a writeout if the migratepage is not supported. > > In the writeout, we will clear the dirty

[PATCH] mm : fix pte _PAGE_DIRTY bit when fallback migrate page

2020-07-08 Thread robbieko
From: Robbie Ko When a migrate page occurs, we first create a migration entry to replace the original pte, and then go to fallback_migrate_page to execute a writeout if the migratepage is not supported. In the writeout, we will clear the dirty bit of the page and use page_mkclean to clear the