[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B200E22.1060306@gmail.com>
Date: Wed, 09 Dec 2009 21:52:50 +0100
From: Jarek Poplawski <jarkao2@...il.com>
To: Octavian Purdila <opurdila@...acom.com>
CC: Eric Dumazet <eric.dumazet@...il.com>, netdev@...r.kernel.org,
Arnaldo Carvalho de Melo <acme@...stprotocols.net>
Subject: Re: [RFC PATCH] llc: convert the socket list to RCU locking (was
Re: [PATCH 3/4] llc: use a device based hash table to speed up multicast
delivery)
Octavian Purdila wrote, On 12/08/2009 10:10 PM:
...
> @@ -652,10 +679,10 @@ static int llc_find_offset(int state, int ev_type)
> void llc_sap_add_socket(struct llc_sap *sap, struct sock *sk)
> {
> llc_sap_hold(sap);
> - write_lock_bh(&sap->sk_list.lock);
> + spin_lock_bh(&sap->sk_lock);
> llc_sk(sk)->sap = sap;
> - sk_add_node(sk, &sap->sk_list.list);
> - write_unlock_bh(&sap->sk_list.lock);
> + sk_nulls_add_node_rcu(sk, &sap->sk_list);
> + spin_lock_bh(&sap->sk_lock);
------->^^^^^^^^^^
Jarek P.
--
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