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

Peter Zijlstra
2020-07-17T09:25:19Z

On Fri, Jul 17, 2020 at 12:20:55AM -0700, ira.weiny@intel.com wrote:
> From: Ira Weiny <ira.weiny@intel.com>
>
> 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.