On Friday, March 1, 2019 8:19:59 PM IST Jan Kara wrote: > On Thu 21-02-19 21:37:27, Aneesh Kumar K.V wrote: > > Jan Kara <jack@xxxxxxx> writes: > > > > > On Thu 21-02-19 19:11:14, Aneesh Kumar K.V wrote: > > >> On 2/21/19 5:42 PM, Jan Kara wrote: > > >> > Hi Aneesh, > > >> > > > >> > On Thu 21-02-19 12:52:39, Aneesh Kumar K.V wrote: > > > > > >> Do pfn_mkwrite callback need to insert the pfn details for a RO->RW fault > > >> type? Can't we skip that pfn insert and let finish_mkwrite_fault handle that > > >> pte update? > > > > > > Yes, pfn_mkwrite() must fully update the PTE as the PTE update must happen > > > under a lock that is private to DAX code. Using ptep_set_access_flags() > > > in iomap code isn't going to be simple either. I have to think whether / > > > how that is possible. > > > > Can we use ptep_clear_flush followed by set_pte_at()? > > So in the end the thing was simpler than I thought. Does attached patch fix > the warnings for you? > > Honza > Hi Jan, Yes, the patch attached by you does indeed fix the warnings. -- chandan