From: Neil Brown <neilb@cse.unsw.edu.au>
To: earny@net4u.de, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: dirty md raid5 slab bio leak
Date: Tue, 28 Jun 2005 14:13:49 +1000 [thread overview]
Message-ID: <17088.52861.78252.726904@cse.unsw.edu.au> (raw)
In-Reply-To: message from Neil Brown on Tuesday June 28
On Tuesday June 28, neilb@cse.unsw.edu.au wrote:
>
> I just checked my test machine (running 2.6.12-rc3-mm3) and it had a
> really large number of bio and biovec-1 in use too (and it's been
> sitting fairly idle for several days).
>
> I've quickly reviewed the raid1 code and I cannot see a bio leak
> (though that doesn't mean there isn't one..)
>
> If anyone else has a large 'bio' slab, please report the configuration
> (kernel, is md in use, etc).
It's OK, I found it. The bio leaks when writing the md superblock.
Thanks,
NeilBrown
--
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>
### Diffstat output
./drivers/md/md.c | 1 +
1 files changed, 1 insertion(+)
diff ./drivers/md/md.c~current~ ./drivers/md/md.c
--- ./drivers/md/md.c~current~ 2005-06-22 13:16:28.000000000 +1000
+++ ./drivers/md/md.c 2005-06-28 13:02:04.000000000 +1000
@@ -338,6 +338,7 @@ static int super_written(struct bio *bio
if (atomic_dec_and_test(&rdev->mddev->pending_writes))
wake_up(&rdev->mddev->sb_wait);
+ bio_put(bio);
return 0;
}
next prev parent reply other threads:[~2005-06-28 4:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-27 20:22 Ernst Herzberg
2005-06-28 1:02 ` Neil Brown
2005-06-28 4:13 ` Neil Brown [this message]
2005-06-28 4:25 ` Andrew Morton
2005-06-28 6:09 ` Neil Brown
2005-06-28 6:17 ` Andrew Morton
2005-07-07 1:19 ` dirty md raid5 slab bio leak [FIXED] Ernst Herzberg
2005-06-28 14:27 ` dirty md raid5 slab bio leak Ernst Herzberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17088.52861.78252.726904@cse.unsw.edu.au \
--to=neilb@cse.unsw.edu.au \
--cc=akpm@osdl.org \
--cc=earny@net4u.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®