Re: [RFC] Hierarchical BackOff Locks

From: Christoph Lameter <clameter_at_engr.sgi.com>
Date: 2005-06-25 03:53:08
On Wed, 22 Jun 2005, Zoltan Menyhart wrote:

> Can we consider instead of "cpu_to_node_map[(ia64_getreg(_IA64_REG_TP)->cpu)]"
> perhaps some "per_cpu__my_slock_idx" ?
> 
> > +	ia64_spinlock_val = ia64_cmpxchg4_acq(ia64_spinlock_ptr,
> > numa_node_id()+ 1, 0);	\
> 
> Instead of "numa_node_id()+ 1" perhaps some "per_cpu__my_slock_id" ?

I just tried to implement your proposed method but we will run into issues 
with preemption. I would have preempt disable/enables or irq 
disable/enables inline as well as in the contention handlers.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Jun 24 13:54:05 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST