Re: [PATCH] mm/madvise: break reclaim when lock race

From: Matthew Wilcox
Date: Tue Dec 07 2021 - 12:20:58 EST


On Tue, Dec 07, 2021 at 11:22:02AM +0800, xf2017140389@xxxxxxxxx wrote:
> From: xiaofeng <xiaofeng5@xxxxxxxxxx>
>
> When the process_madvise() system call is being used, it takes mmap_lock and blocks the application from allocating memory, leading to unreasonable delays. This patchset aims to fix it.

This means that any page fault will cause madvise() to fail. NACK.