Re: [PATCH v6 05/26] fs/dax: Create a common implementation to break DAX layouts

2025-01-13 Thread Dan Williams
Alistair Popple wrote: > Prior to freeing a block file systems supporting FS DAX must check > that the associated pages are both unmapped from user-space and not > undergoing DMA or other access from eg. get_user_pages(). This is > achieved by unmapping the file range and scanning the FS DAX > page

Re: [PATCH v6 05/26] fs/dax: Create a common implementation to break DAX layouts

2025-01-13 Thread Dan Williams
Alistair Popple wrote: > Prior to freeing a block file systems supporting FS DAX must check > that the associated pages are both unmapped from user-space and not > undergoing DMA or other access from eg. get_user_pages(). This is > achieved by unmapping the file range and scanning the FS DAX > page

Re: [PATCH v6 05/26] fs/dax: Create a common implementation to break DAX layouts

2025-01-13 Thread Dan Williams
Alistair Popple wrote: > Prior to freeing a block file systems supporting FS DAX must check > that the associated pages are both unmapped from user-space and not > undergoing DMA or other access from eg. get_user_pages(). This is > achieved by unmapping the file range and scanning the FS DAX > page

Re: [PATCH v6 05/26] fs/dax: Create a common implementation to break DAX layouts

2025-01-12 Thread Darrick J. Wong
On Mon, Jan 13, 2025 at 11:47:41AM +1100, Alistair Popple wrote: > On Fri, Jan 10, 2025 at 08:44:38AM -0800, Darrick J. Wong wrote: > > On Fri, Jan 10, 2025 at 05:00:33PM +1100, Alistair Popple wrote: > > > Prior to freeing a block file systems supporting FS DAX must check > > > that the associated

Re: [PATCH v6 05/26] fs/dax: Create a common implementation to break DAX layouts

2025-01-12 Thread Alistair Popple
On Fri, Jan 10, 2025 at 08:44:38AM -0800, Darrick J. Wong wrote: > On Fri, Jan 10, 2025 at 05:00:33PM +1100, Alistair Popple wrote: > > Prior to freeing a block file systems supporting FS DAX must check > > that the associated pages are both unmapped from user-space and not > > undergoing DMA or ot

Re: [PATCH v6 05/26] fs/dax: Create a common implementation to break DAX layouts

2025-01-10 Thread Darrick J. Wong
On Fri, Jan 10, 2025 at 05:00:33PM +1100, Alistair Popple wrote: > Prior to freeing a block file systems supporting FS DAX must check > that the associated pages are both unmapped from user-space and not > undergoing DMA or other access from eg. get_user_pages(). This is > achieved by unmapping the

[PATCH v6 05/26] fs/dax: Create a common implementation to break DAX layouts

2025-01-09 Thread Alistair Popple
Prior to freeing a block file systems supporting FS DAX must check that the associated pages are both unmapped from user-space and not undergoing DMA or other access from eg. get_user_pages(). This is achieved by unmapping the file range and scanning the FS DAX page-cache to see if any pages within