login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
1
Re: [PATCH] Extend list debugging to cover hlists
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Arjan van de Ven <arjan@...>
To: Matthew Wilcox <matthew@...>
Cc: Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, <linux-kernel@...>, Dave Jones <davej@...>
Subject:
Re: [PATCH] Extend list debugging to cover hlists
Date: Thursday, May 1, 2008 - 4:32 pm
On Fri, 2 May 2008 12:27:46 -0600 Matthew Wilcox <matthew@wil.cx> wrote:
quoted text
> +void hlist_check(struct hlist_node *n) > +{ > + if (unlikely(*n->pprev != n)) { > + printk(KERN_ERR "hlist corruption. *pprev should be > %p, " > + "but was %p\n", n, *n->pprev); > + BUG(); > + } > + if (unlikely(n->next != NULL && n->next->pprev != &n->next)) > { > + printk(KERN_ERR "hlist corruption. n->next->pprev > should be" > + "%p, but was %p\n", &n->next, > n->next->pprev); > + BUG(); > + } > +} > +EXPORT_SYMBOL(hlist_check); >
Hi, I like the concept of the patch; however... BUG() is a tad on the rude side... how about WARN_ON(1) ? --
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] Extend list debugging to cover hlists
, Matthew Wilcox
, (Fri May 2, 2:27 pm)
Re: [PATCH] Extend list debugging to cover hlists
, Andrew Morton
, (Fri May 2, 7:14 pm)
Re: [PATCH] Extend list debugging to cover hlists
, Matthew Wilcox
, (Fri May 2, 7:17 pm)
Re: [PATCH] Extend list debugging to cover hlists
, Andrew Morton
, (Fri May 2, 7:39 pm)
Re: [PATCH] Extend list debugging to cover hlists
, Arjan van de Ven
, (Thu May 1, 4:32 pm)
Re: [PATCH] Extend list debugging to cover hlists
, Matthew Wilcox
, (Fri May 2, 2:49 pm)
[PATCH] Make
, Dave Jones
, (Mon May 19, 11:24 pm)
Re: [PATCH] Make
, Arjan van de Ven
, (Tue May 20, 10:14 am)
Re: [PATCH] Make
, Dave Jones
, (Tue May 20, 10:27 am)
Re: [PATCH] Make
, Alexey Dobriyan
, (Tue May 20, 11:00 am)
Re: [PATCH] Make
, Linus Torvalds
, (Tue May 20, 11:12 am)
Re: [PATCH] Make
, Dave Jones
, (Tue May 20, 11:22 am)
Re: [PATCH] Make (LIST_DEBUG WARN not BUG)
, Alexey Dobriyan
, (Tue May 20, 5:52 pm)
Re: [PATCH] Make
, Linus Torvalds
, (Tue May 20, 10:54 am)
Re: [PATCH] Make
, Dave Jones
, (Tue May 20, 11:20 am)
Re: [PATCH] Make
, Arjan van de Ven
, (Tue May 20, 12:15 pm)
Re: [PATCH] Extend list debugging to cover hlists
, Dave Jones
, (Fri May 2, 3:05 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Eric W. Biederman
[PATCH 02/10] sysfs: Support for preventing unmounts.
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Antonio Almeida
HTB accuracy for high speed
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set...
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
926 guests
online.
Online users
zeekec
Nelson
mercre40
ionut
Jeremy
TapestryPassion
Syndicate