[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100330093252.60d9cbee@nehalam>
Date: Tue, 30 Mar 2010 09:32:52 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: James Chapman <jchapman@...alix.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH v3 10/12] l2tp: Add L2TP ethernet pseudowire support
On Tue, 30 Mar 2010 17:18:19 +0100
James Chapman <jchapman@...alix.com> 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.
--
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists