]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] md: bio leak fix
authorNeil Brown <neilb@cse.unsw.edu.au>
Tue, 28 Jun 2005 05:29:34 +0000 (22:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 28 Jun 2005 21:53:41 +0000 (14:53 -0700)
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 <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c

index 3802f7a17f1635c17f2bcd6fe426e994e0871cf4..4a0c57db2b67657b8c09cfbe67f5d2cfb487ed95 100644 (file)
@@ -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;
 }