Re: [PATCH RFC V2 16/17] [dax|pmem]: Enable stray write protection

From: Peter Zijlstra
Date: Fri Jul 17 2020 - 05:25:21 EST


On Fri, Jul 17, 2020 at 12:20:55AM -0700, ira.weiny@xxxxxxxxx wrote:
> From: Ira Weiny <ira.weiny@xxxxxxxxx>
>
> Protecting against stray writes is particularly important for PMEM
> because, unlike writes to anonymous memory, writes to PMEM persists
> across a reboot. Thus data corruption could result in permanent loss of
> data. Therefore, there is no option presented to the user.
>
> Enable stray write protection by setting the flag in pgmap which
> requests it. Note if Zone Device Access Protection not be supported
> this flag will have no affect.

The actual implementation is stray-access-protection, as noted ealier.
This inconsisteny is throughout.