Re: [PATCH v4 5/6] dax: fix missing writeprotect the pte entry

2022-03-15 Thread Muchun Song
On Tue, Mar 15, 2022 at 4:50 AM Dan Williams wrote: > > On Fri, Mar 11, 2022 at 1:06 AM Muchun Song wrote: > > > > On Thu, Mar 10, 2022 at 8:59 AM Dan Williams > > wrote: > > > > > > On Wed, Mar 2, 2022 at 12:30 AM Muchun Song > > > wrote: > > > > > > > > Currently

Re: [PATCH v4 5/6] dax: fix missing writeprotect the pte entry

2022-03-14 Thread Dan Williams
On Fri, Mar 11, 2022 at 1:06 AM Muchun Song wrote: > > On Thu, Mar 10, 2022 at 8:59 AM Dan Williams wrote: > > > > On Wed, Mar 2, 2022 at 12:30 AM Muchun Song > > wrote: > > > > > > Currently dax_mapping_entry_mkclean() fails to clean and write protect > > > the pte entry within a DAX PMD

Re: [PATCH v4 5/6] dax: fix missing writeprotect the pte entry

2022-03-11 Thread Muchun Song
On Thu, Mar 10, 2022 at 8:59 AM Dan Williams wrote: > > On Wed, Mar 2, 2022 at 12:30 AM Muchun Song wrote: > > > > Currently dax_mapping_entry_mkclean() fails to clean and write protect > > the pte entry within a DAX PMD entry during an *sync operation. This > > can result in data loss in the

Re: [PATCH v4 5/6] dax: fix missing writeprotect the pte entry

2022-03-09 Thread Dan Williams
On Wed, Mar 2, 2022 at 12:30 AM Muchun Song wrote: > > Currently dax_mapping_entry_mkclean() fails to clean and write protect > the pte entry within a DAX PMD entry during an *sync operation. This > can result in data loss in the following sequence: > > 1) process A mmap write to DAX PMD,

[PATCH v4 5/6] dax: fix missing writeprotect the pte entry

2022-03-02 Thread Muchun Song
Currently dax_mapping_entry_mkclean() fails to clean and write protect the pte entry within a DAX PMD entry during an *sync operation. This can result in data loss in the following sequence: 1) process A mmap write to DAX PMD, dirtying PMD radix tree entry and making the pmd entry dirty