[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220719191352.3366482-1-Liam.Howlett@oracle.com>
Date: Tue, 19 Jul 2022 19:14:01 +0000
From: Liam Howlett <liam.howlett@...cle.com>
To: "maple-tree@...ts.infradead.org" <maple-tree@...ts.infradead.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Hugh Dickins <hughd@...gle.com>
CC: Yu Zhao <yuzhao@...gle.com>
Subject: [PATCH 0/3] mmap: Remove do_brk_munmap() optimization
Andrew,
The following is a series of changes to remove the do_brk_munmap()
optimization that Hugh flagged as an issue. Please apply patch 1 to
(mm/mmap: change do_brk_flags() to expand existing VMA and add
do_brk_munmap()) and the last two should replace patches in the v11 set.
2/3 should replace 28/69
3/3 should replace 29/69
The end result should look like this:
static int do_brk_munmap(struct ma_state *mas, struct vm_area_struct *vma,
unsigned long newbrk, unsigned long oldbrk,
struct list_head *uf)
{
struct mm_struct *mm = vma->vm_mm;
int ret;
arch_unmap(mm, newbrk, oldbrk);
ret = do_mas_align_munmap(mas, vma, mm, newbrk, oldbrk, uf, true);
validate_mm_mt(mm);
return ret;
}
Thanks,
Liam
Powered by blists - more mailing lists