Re: [PATCH v2 2/3] arm64: mm: don't call page table ctors for init_mm

2019-03-08 Thread Yu Zhao
On Tue, Feb 26, 2019 at 03:13:07PM +, Mark Rutland wrote: > Hi, > > On Mon, Feb 18, 2019 at 04:13:18PM -0700, Yu Zhao wrote: > > init_mm doesn't require page table lock to be initialized at > > any level. Add a separate page table allocator for it, and the > > new one skips page table ctors.

Re: [PATCH v2 2/3] arm64: mm: don't call page table ctors for init_mm

2019-02-26 Thread Mark Rutland
Hi, On Mon, Feb 18, 2019 at 04:13:18PM -0700, Yu Zhao wrote: > init_mm doesn't require page table lock to be initialized at > any level. Add a separate page table allocator for it, and the > new one skips page table ctors. Just to check, in a previous reply you mentioned we need to call the

[PATCH v2 2/3] arm64: mm: don't call page table ctors for init_mm

2019-02-18 Thread Yu Zhao
init_mm doesn't require page table lock to be initialized at any level. Add a separate page table allocator for it, and the new one skips page table ctors. The ctors allocate memory when ALLOC_SPLIT_PTLOCKS is set. Not calling them avoids memory leak in case we call pte_free_kernel() on init_mm.