Skip to content

Commit

Permalink
[PATCH] md: bio leak fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Neil Brown authored and Linus Torvalds committed Jun 28, 2005
1 parent 314b6a4 commit f8b58ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f8b58ed

Please sign in to comment.