Re: [PATCH 2/8 linux-next] libnvdimm, namespace: add verbosity to persistence warning

From: Dan Williams
Date: Fri Dec 02 2016 - 15:53:41 EST


On Fri, Dec 2, 2016 at 11:20 AM, Fabian Frederick <fabf@xxxxxxxxx> wrote:
> Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
> ---
> drivers/nvdimm/pmem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c
> index 2461843..822a712 100644
> --- a/drivers/nvdimm/pmem.c
> +++ b/drivers/nvdimm/pmem.c
> @@ -267,7 +267,7 @@ static int pmem_attach_disk(struct device *dev,
> pmem->phys_addr = res->start;
> pmem->size = resource_size(res);
> if (nvdimm_has_flush(nd_region) < 0)
> - dev_warn(dev, "unable to guarantee persistence of writes\n");
> + dev_warn(dev, "unable to guarantee persistence of writes due to unknown flushing capability of the memory region\n");

I'll pass on this one. Another reason could be that the flushing
capability is present but disabled. Just seeing it's not guaranteed
is sufficient.