login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
21
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: Tuesday, December 21, 2010 - 12:14 pm
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.
Any reason to keep this separate from patch 1/4 ? -- Darren
quoted text
> > Signed-off-by: Lai Jiangshan<laijs@cn.fujitsu.com> > --- > 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
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Linus Torvalds
Linux 2.6.34-rc4
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
Paul Menage
Re: [PATCH] Fix cpuset sched_relax_domain_level control file
git
:
Ralf Wildenhues
[PATCH] Fix typos in the documentation
Len Brown
Re: fatal: unable to create '.git/index': File exists
Denis Bueno
Git clone error
Sam Vilain
Re: RFC: Flat directory for notes, or fan-out? Both!
Oliver Hoffmann
git init --bare versus git --bare init
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
V4L/DVB: gspca - sonixj: Adjust minor values of sensor ov7630. - set the color ga...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Sam Fourman Jr.
Re: Help with Altell PC6700
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
linux-netdev
:
Kurt Van Dijck
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
David Miller
Re: [PATCH v2] net: typos in comments in include/linux/igmp.h
Colocation donated by:
Syndicate