Subject: Re: [PATCH v3 10/12] l2tp: Add L2TP ethernet pseudowire support

From: Stephen Hemminger <[email-masked]>
Date: Tue, 30 Mar 2010 09:32:52 -0700

On Tue, 30 Mar 2010 17:18:19 +0100
James Chapman <[email-masked]> wrote:

> +struct l2tp_eth_net {
> +	struct list_head l2tp_eth_dev_list;
> +	rwlock_t l2tp_eth_lock;
> +};

Reader/write locks are discouraged because they are slower than
spin locks.  If you have lots of readers use RCU, if reading
is infrequent just use a spin lock.

--