Re: [PATCH v13] mm, pmem, xfs: Introduce MF_MEM_PRE_REMOVE for unbind

2023-08-23 Thread Darrick J. Wong
On Wed, Aug 23, 2023 at 04:17:06PM +0800, Shiyang Ruan wrote: > > Changes since v12: > 1. correct flag name in subject (MF_MEM_REMOVE => MF_MEM_PRE_REMOVE) > 2. complete the behavior when fs has already frozen by kernel call > NOTICE: Instead of "call notify_failure() again w/o

Re: [PATCH v12 2/2] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind

2023-08-23 Thread Shiyang Ruan
在 2023/8/8 8:31, Dan Williams 写道: Shiyang Ruan wrote: 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 on it to unmap all files in use, and notify

[PATCH v13] mm, pmem, xfs: Introduce MF_MEM_PRE_REMOVE for unbind

2023-08-23 Thread Shiyang Ruan
Changes since v12: 1. correct flag name in subject (MF_MEM_REMOVE => MF_MEM_PRE_REMOVE) 2. complete the behavior when fs has already frozen by kernel call NOTICE: Instead of "call notify_failure() again w/o PRE_REMOVE", I tried this proposal[0]. 3. call