From: Neil Brown Date: Tue, 28 Jun 2005 05:29:34 +0000 (-0700) Subject: [PATCH] md: bio leak fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8b58edf3acf0dcc186b8330939000ecf709368a;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] md: bio leak fix insert a missing bio_put when writting the md superblock. Without this we have a steady growth in the "bio" slab. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 3802f7a17f16..4a0c57db2b67 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -338,6 +338,7 @@ static int super_written(struct bio *bio, unsigned int bytes_done, int error) if (atomic_dec_and_test(&rdev->mddev->pending_writes)) wake_up(&rdev->mddev->sb_wait); + bio_put(bio); return 0; }