From: Andrew Morton <akpm@osdl.org>
To: piotr@larroy.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.5-rc1-mm1
Date: Mon, 22 Mar 2004 19:35:02 -0800 [thread overview]
Message-ID: <20040322193502.41704cda.akpm@osdl.org> (raw)
In-Reply-To: <20040322195450.GB2306@larroy.com>
piotr@larroy.com (Pedro Larroy) wrote:
>
> On Mon, Mar 22, 2004 at 07:33:27AM -0800, Andrew Morton wrote:
> > piotr@larroy.com (Pedro Larroy) wrote:
> > >
> > > Where would kernel leaked ram be accounted?
> >
> > /proc/meminfo, /proc/vmstat and /proc/slabinfo. Also sysrq-M.
A memory leak was introduced in the ext3 changes.
25-akpm/fs/jbd/commit.c | 8 ++++++++
1 files changed, 8 insertions(+)
diff -puN fs/jbd/commit.c~jbd-move-locked-buffers-leak-fixes fs/jbd/commit.c
--- 25/fs/jbd/commit.c~jbd-move-locked-buffers-leak-fixes 2004-03-22 19:34:37.492865816 -0800
+++ 25-akpm/fs/jbd/commit.c 2004-03-22 19:34:41.987182576 -0800
@@ -296,6 +296,13 @@ write_out_data:
}
}
+ if (bufs) {
+ spin_unlock(&journal->j_list_lock);
+ ll_rw_block(WRITE, bufs, wbuf);
+ journal_brelse_array(wbuf, bufs);
+ spin_lock(&journal->j_list_lock);
+ }
+
/*
* Wait for all previously submitted IO to complete.
*/
@@ -322,6 +329,7 @@ write_out_data:
jh->b_transaction = NULL;
jbd_unlock_bh_state(bh);
journal_remove_journal_head(bh);
+ put_bh(bh);
} else {
jbd_unlock_bh_state(bh);
}
_
next prev parent reply other threads:[~2004-03-23 3:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-16 9:53 2.6.5-rc1-mm1 Andrew Morton
2004-03-16 10:53 ` 2.6.5-rc1-mm1 - looks better Neil Brown
2004-03-16 12:40 ` 2.6.5-rc1-mm1: IPMI_SMB still doesn't compile Adrian Bunk
2004-03-16 22:31 ` Corey Minyard
2004-03-16 22:58 ` Andrew Morton
2004-03-16 20:14 ` 2.6.5-rc1-mm1 (compile stats) John Cherry
2004-03-16 20:24 ` 2.6.5-rc1-mm1 Marc-Christian Petersen
2004-03-17 10:08 ` 2.6.5-rc1-mm1 reboots before the boot completes Helge Hafting
2004-03-17 10:15 ` Andrew Morton
2004-03-17 14:39 ` Felipe Alfaro Solana
2004-03-17 14:59 ` Helge Hafting
2004-03-17 12:50 ` Felipe Alfaro Solana
2004-03-17 14:14 ` Danny ter Haar
2004-03-22 12:53 ` 2.6.5-rc1-mm1 Pedro Larroy
2004-03-22 15:33 ` 2.6.5-rc1-mm1 Andrew Morton
2004-03-22 19:54 ` 2.6.5-rc1-mm1 Pedro Larroy
2004-03-23 3:35 ` Andrew Morton [this message]
2004-03-23 13:05 ` 2.6.5-rc1-mm1 Marc-Christian Petersen
2004-03-22 21:29 ` 2.6.5-rc1-mm1 Ed Tomlinson
2004-03-22 15:38 ` 2.6.5-rc1-mm1 Marc-Christian Petersen
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=20040322193502.41704cda.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=piotr@larroy.com \
/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
Powered by JetHome