login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
4
Re: [PATCH UPDATED] jbd: Use printk_ratelimited() in journal_alloc_journal_head()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jan Kara
Subject:
Re: [PATCH UPDATED] jbd: Use printk_ratelimited() in journal_alloc_journal_head()
Date: Monday, October 4, 2010 - 3:31 am
On Mon 04-10-10 19:12:13, Namhyung Kim wrote:
quoted text
> Use printk_ratelimited() instead of doing it manually.
Thanks. I've merged the patch into my tree. Honza
quoted text
> > Signed-off-by: Namhyung Kim <namhyung@gmail.com> > --- > fs/jbd/journal.c | 9 +++------ > 1 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c > index 6f20a75..f79767d 100644 > --- a/fs/jbd/journal.c > +++ b/fs/jbd/journal.c > @@ -1718,7 +1718,6 @@ static void journal_destroy_journal_head_cache(void) > static struct journal_head *journal_alloc_journal_head(void) > { > struct journal_head *ret; > - static unsigned long last_warning; > > #ifdef CONFIG_JBD_DEBUG > atomic_inc(&nr_journal_heads); > @@ -1726,11 +1725,9 @@ static struct journal_head *journal_alloc_journal_head(void) > ret = kmem_cache_alloc(journal_head_cache, GFP_NOFS); > if (ret == NULL) { > jbd_debug(1, "out of memory for journal_head\n"); > - if (time_after(jiffies, last_warning + 5*HZ)) { > - printk(KERN_NOTICE "ENOMEM in %s, retrying.\n", > - __func__); > - last_warning = jiffies; > - } > + printk_ratelimited(KERN_NOTICE "ENOMEM in %s, retrying.\n", > + __func__); > + > while (ret == NULL) { > yield(); > ret = kmem_cache_alloc(journal_head_cache, GFP_NOFS); > -- > 1.7.0.4 >
-- Jan Kara <jack@suse.cz> SUSE Labs, CR --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] jbd: Use printk_ratelimit() in journal_alloc_journ ...
, Namhyung Kim
, (Mon Oct 4, 2:17 am)
Re: [PATCH] jbd: Use printk_ratelimit() in journal_alloc_j ...
, Jan Kara
, (Mon Oct 4, 2:43 am)
[PATCH UPDATED] jbd: Use printk_ratelimited() in journal_a ...
, Namhyung Kim
, (Mon Oct 4, 3:12 am)
Re: [PATCH UPDATED] jbd: Use printk_ratelimited() in journ ...
, Jan Kara
, (Mon Oct 4, 3:31 am)
Re: [PATCH UPDATED] jbd: Use printk_ratelimited() in journ ...
, Jan Kara
, (Mon Oct 4, 4:37 am)
Re: [PATCH UPDATED] jbd: Use printk_ratelimited() in journ ...
, Namhyung Kim
, (Mon Oct 4, 5:20 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michael Moore
Re: underage models, pre teen models, lolita porn, young preteens, little lolitas
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Thomas Gleixner
[ANNOUNCE] 2.6.31-rc6-rt2
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
git
:
Blaisorblade
git-unpack-objects < pack file in repository doesn't work!
Matthieu Moy
Re: Cloning empty repositories, was Re: What is the idea for bare repositories?
Linus Torvalds
Re: Untracked working tree files
Peter Karlsson
Re: CRLF problems with Git on Win32
Johannes Schindelin
Re: [PATCH 4/4] git-rebase -i: New option to support rebase with merges
linux-netdev
:
Alan Menegotto
Re: Linux networking implementation and packet capture
Andrew Morton
Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
Timo Teräs
ip xfrm policy semantics
Jarek Poplawski
Re: [PATCH]: Fix queueing return values...
David Miller
Re: [PATCH 1/2] netdev: bfin_mac: enable bfin_mac net dev driver for BF51x
git-commits-head
:
Linux Kernel Mailing List
Blackfin: don't give CPU its own line in traps output
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
powerpc: gamecube/wii: usbgecko bootwrapper console support
openbsd-misc
:
Aaron Mason
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Henning Brauer
Re: Defending OpenBSD Performance
Christiano Farina Haesbaert
Re: Defending OpenBSD Performance
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate