Re: [PATCH] powerpc: msi: mark bitmap with kmemleak_not_leak()

2015-09-14 Thread Denis Kirjanov
On 9/14/15, Catalin Marinas wrote: > On Mon, Sep 14, 2015 at 07:36:49PM +1000, Michael Ellerman wrote: >> On Mon, 2015-09-14 at 10:15 +0100, Catalin Marinas wrote: >> > You could add some flag to struct msi_bitmap based on mem_init_done to >> > be able to reclaim some slab memory later. If the bit

Re: [PATCH] powerpc: msi: mark bitmap with kmemleak_not_leak()

2015-09-14 Thread Catalin Marinas
On Mon, Sep 14, 2015 at 07:36:49PM +1000, Michael Ellerman wrote: > On Mon, 2015-09-14 at 10:15 +0100, Catalin Marinas wrote: > > You could add some flag to struct msi_bitmap based on mem_init_done to > > be able to reclaim some slab memory later. If the bitmap is small and > > such allocation does

Re: [PATCH] powerpc: msi: mark bitmap with kmemleak_not_leak()

2015-09-14 Thread Michael Ellerman
On Mon, 2015-09-14 at 10:15 +0100, Catalin Marinas wrote: > On Mon, Sep 14, 2015 at 04:04:37PM +1000, Michael Ellerman wrote: > > On Sun, 2015-09-13 at 21:36 +0300, Denis Kirjanov wrote: > > > The comment in msi_bitmap_free() states that we can't free > > > the bitmap so mark it with the kmemleak_n

Re: [PATCH] powerpc: msi: mark bitmap with kmemleak_not_leak()

2015-09-14 Thread Catalin Marinas
On Mon, Sep 14, 2015 at 04:04:37PM +1000, Michael Ellerman wrote: > On Sun, 2015-09-13 at 21:36 +0300, Denis Kirjanov wrote: > > During the MSI bitmap test on boot kmemleak spews the following trace: > > > > unreferenced object 0xc0016e86c900 (size 64): > > comm "swapper/0", pid 1, jiffies

Re: [PATCH] powerpc: msi: mark bitmap with kmemleak_not_leak()

2015-09-13 Thread Michael Ellerman
On Sun, 2015-09-13 at 21:36 +0300, Denis Kirjanov wrote: > During the MSI bitmap test on boot kmemleak spews the following trace: > > unreferenced object 0xc0016e86c900 (size 64): > comm "swapper/0", pid 1, jiffies 4294893173 (age 518.024s) > hex dump (first 32 bytes): > 00 00 01

[PATCH] powerpc: msi: mark bitmap with kmemleak_not_leak()

2015-09-13 Thread Denis Kirjanov
During the MSI bitmap test on boot kmemleak spews the following trace: unreferenced object 0xc0016e86c900 (size 64): comm "swapper/0", pid 1, jiffies 4294893173 (age 518.024s) hex dump (first 32 bytes): 00 00 01 ff 7f ff 7f 37 00 00 00 00 00 00 00 00 ...7