Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting
From: Kirill A. Shutemov
Date: Sun Dec 27 2020 - 18:56:01 EST
On Sun, Dec 27, 2020 at 03:40:36PM -0800, Linus Torvalds wrote:
> I think Kirill was intending to move the "if (ret)" up into the path
> that sets it, IOW something like
>
> + if (!(vma->vm_flags & VM_SHARED)) {
> + ret = check_stable_address_space(vma->vm_mm);
> + if (ret)
> + return ret;
> + }
>
> instead. But that patch as-is is broken.
>
> Kirill?
Right. Once again, patch is below.