Re: [PATCH] Fix reported kmemleak

From: Xiong Zhou
Date: Sun Jun 12 2016 - 06:29:15 EST


Hi,

On Tue, Jun 07, 2016 at 11:23:30AM -0500, Shaun Tancheff wrote:
> This fixes a memory leak reported by a few people in 4.7-rc1
>
> kmemleak report after 9082e87bfbf8 ("block: remove struct bio_batch")
>
> This patch just formalizes the one in this discussion here:
> https://lkml.kernel.org/r/20160606112620.GA29910@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> The same issue appears here:
> https://lkml.kernel.org/r/20160607102651.GA6480@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> Patch is also available at:
>
> https://github.com/stancheff/linux.git
> branch: v4.7-rc2+bio_put
>
> Cc: Christoph Hellwig <hch@xxxxxx>
> Cc: axboe@xxxxxxxxx
> cc: David Drysdale <drysdale@xxxxxxxxxx>
> Cc: Xiong Zhou <xzhou@xxxxxxxxxx>

Thanks for the information!

> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Cc: linux-next@xxxxxxxxxxxxxxx
> Cc: linux-nvdimm@xxxxxxxxxxx
> Cc: Christoph Hellwig <hch@xxxxxx>
> Cc: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
> Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
> Cc: LKML <linux-kernel@xxxxxxxxxxxxxxx>,
> Cc: Jens Axboe <axboe@xxxxxx>,
> Cc: bart.vanassche@xxxxxxxxxxx
>
> Shaun Tancheff (1):
> Missing bio_put following submit_bio_wait
>
> block/blk-lib.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> --
> 2.8.1
>