projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
314b6a4
)
[PATCH] md: bio leak fix
author
Neil Brown
<neilb@cse.unsw.edu.au>
Tue, 28 Jun 2005 05:29:34 +0000
(22:29 -0700)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 3802f7a17f1635c17f2bcd6fe426e994e0871cf4..4a0c57db2b67657b8c09cfbe67f5d2cfb487ed95 100644
(file)
--- 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;
}