Re: [RFC PATCH] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind

2022-05-19 Thread Shiyang Ruan
在 2022/4/11 15:06, Christoph Hellwig 写道: On Mon, Apr 11, 2022 at 01:16:23AM +0800, Shiyang Ruan wrote: diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index bd502957cfdf..72d9e69aea98 100644 --- a/drivers/nvdimm/pmem.c +++ b/drivers/nvdimm/pmem.c @@ -359,7 +359,6 @@ static void pme

Re: [RFC PATCH] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind

2022-04-11 Thread Christoph Hellwig
On Mon, Apr 11, 2022 at 01:16:23AM +0800, Shiyang Ruan wrote: > diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c > index bd502957cfdf..72d9e69aea98 100644 > --- a/drivers/nvdimm/pmem.c > +++ b/drivers/nvdimm/pmem.c > @@ -359,7 +359,6 @@ static void pmem_release_disk(void *__pmem) >

[RFC PATCH] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind

2022-04-10 Thread Shiyang Ruan
This patch is inspired by Dan's "mm, dax, pmem: Introduce dev_pagemap_failure()"[1]. With the help of dax_holder and ->notify_failure() mechanism, the pmem driver is able to ask filesystem (or mapped device) on it to unmap all files in use and notify processes who are using those files. Call trac