login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
22
Re: [PATCH 2/4] futex,plist: remove debug lock assignment for plist_node
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Darren Hart
Subject:
Re: [PATCH 2/4] futex,plist: remove debug lock assignment for plist_node
Date: Wednesday, December 22, 2010 - 9:24 am
On 12/21/2010 01:55 AM, Lai Jiangshan wrote:
quoted text
> original code use&plist_node->plist as the faked head of > the priority list for plist_del(), these debug locks in > the faked head are needed for CONFIG_DEBUG_PI_LIST. > > But now we always pass the real head to plist_del(), the debug locks > in plist_node will not be used, so we remove these assignments. > > Signed-off-by: Lai Jiangshan<laijs@cn.fujitsu.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
quoted text
> --- > diff --git a/kernel/futex.c b/kernel/futex.c > index 6c4f67a..725834e 100644 > --- a/kernel/futex.c > +++ b/kernel/futex.c > @@ -1032,9 +1032,6 @@ void requeue_futex(struct futex_q *q, struct futex_hash_bucket *hb1, > plist_del(&q->list,&hb1->chain); > plist_add(&q->list,&hb2->chain); > q->lock_ptr =&hb2->lock; > -#ifdef CONFIG_DEBUG_PI_LIST > - q->list.plist.spinlock =&hb2->lock; > -#endif > } > get_futex_key_refs(key2); > q->key = *key2; > @@ -1068,9 +1065,6 @@ void requeue_pi_wake_futex(struct futex_q *q, union futex_key *key, > q->rt_waiter = NULL; > > q->lock_ptr =&hb->lock; > -#ifdef CONFIG_DEBUG_PI_LIST > - q->list.plist.spinlock =&hb->lock; > -#endif > > wake_up_state(q->task, TASK_NORMAL); > } > @@ -1418,9 +1412,6 @@ static inline void queue_me(struct futex_q *q, struct futex_hash_bucket *hb) > prio = min(current->normal_prio, MAX_RT_PRIO); > > plist_node_init(&q->list, prio); > -#ifdef CONFIG_DEBUG_PI_LIST > - q->list.plist.spinlock =&hb->lock; > -#endif > plist_add(&q->list,&hb->chain); > q->task = current; > spin_unlock(&hb->lock);
-- Darren Hart Yocto Linux Kernel --
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 2/4] futex,plist: remove debug lock assignment for ...
, Lai Jiangshan
, (Tue Dec 21, 2:55 am)
Re: [PATCH 2/4] futex,plist: remove debug lock assignment ...
, Darren Hart
, (Tue Dec 21, 12:14 pm)
Re: [PATCH 2/4] futex,plist: remove debug lock assignment ...
, Lai Jiangshan
, (Tue Dec 21, 10:57 pm)
Re: [PATCH 2/4] futex,plist: remove debug lock assignment ...
, Darren Hart
, (Tue Dec 21, 11:47 pm)
Re: [PATCH 2/4] futex,plist: remove debug lock assignment ...
, Darren Hart
, (Wed Dec 22, 9:24 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Frederic Weisbecker
[PATCH v2] struct sort_entry has a callback named snprintf that turns an entry int...
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Jens Axboe
Re: [BUG] Linux 2.6.25-rc2 - Regression from 2.6.24-rc1-git1 softlockup while bo...
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
Ingo Molnar
Re: [GIT PULL] time.c - respin
git
:
Junio C Hamano
Re: git-svnimport
Michal Sojka
[PATCHv5 1/2] filter-branch: Fix to allow replacing submodules with another content
Junio C Hamano
Re: Fwd: git status options feature suggestion
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
git-commits-head
:
Linux Kernel Mailing List
ARM: S3C64XX: DMA: Callback with correct buffer pointer
Linux Kernel Mailing List
sata_mv: drop unncessary EH callback resetting
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Rene Maroufi
smtpd: Aliases only work with for local alias aliases
Stephen J. Bevan
GRE over IPsec
Christophe Rioux
Implementation example of snmp
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: booting openbsd on eee without cd-rom
Colocation donated by:
Syndicate