Re: possible leak in kernel 2.6.10-ac12

From: Noel Maddy
Date: Wed Feb 16 2005 - 19:40:16 EST


On Thu, Feb 17, 2005 at 12:02:33AM +0000, Pedro Venda wrote:

> admin proc # cat slabinfo
...
> biovec-1 74224 74354 16 226 1 : tunables 120 60 0 : slabdata 329 329 0
> bio 74212 74237 64 61 1 : tunables 120 60 0 : slabdata 1217 1217 0

If you're using md, you need this patch to fix a bio leak:

http://linux.bkbits.net:8080/linux-2.6/diffs/drivers/md/md.c@xxxxx


Index: ac-dev/drivers/md/md.c
===================================================================
--- ac-dev.orig/drivers/md/md.c 2005-02-07 17:50:37.000000000 -0500
+++ ac-dev/drivers/md/md.c 2005-02-08 17:49:57.000000000 -0500
@@ -336,8 +336,6 @@
struct completion event;
int ret;

- bio_get(bio);
-
rw |= (1 << BIO_RW_SYNC);

bio->bi_bdev = bdev;
--
It's a big galaxy, Mr. Scott.
-- Lieutenant Uhura
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Noel Maddy <noel@xxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/