Re: [PATCH] netfilter: use per-CPU r**ursive lock {XV}

From: David Miller
Date: Tue Apr 28 2009 - 09:44:01 EST


From: Ingo Molnar <mingo@xxxxxxx>
Date: Tue, 28 Apr 2009 14:40:33 +0200

> IMHO this locking construct should be considered for
> linux/local_lock.h and kernel/local_lock.c. Even if the netfilter
> code drops its use soon afterwards ;-)

If you can show me have to pass a per-cpu variable (the variable,
not a dereference of it) as an argument to an inline function,
I'll implement this :-)

It has to be dereferenced after local_bh_disable() for the
read side acquisition.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/