mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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 <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
314b6a4d80
commit
f8b58edf3a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue