[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4D9B56E3.9080207@hartkopp.net>
Date: Tue, 05 Apr 2011 19:52:35 +0200
From: Oliver Hartkopp <socketcan@...tkopp.net>
To: David Miller <davem@...emloft.net>
CC: Linux Netdev List <netdev@...r.kernel.org>,
Kurt Van Dijck <kurt.van.dijck@....be>,
Eric Dumazet <eric.dumazet@...il.com>,
Urs Thuermann <urs@...ogud.escape.de>
Subject: Re: [PATCH net-next-2.6] can: convert protocol handling to RCU
On 04.04.2011 22:21, Oliver Hartkopp wrote:
> This patch removes spin_locks at CAN socket creation time by using RCU.
>
> @@ -143,22 +159,18 @@ static int can_create(struct net *net, struct socket *sock, int protocol,
> if (err && printk_ratelimit())
> printk(KERN_ERR "can: request_module "
> "(can-proto-%d) failed.\n", protocol);
> + else
> + cp = can_try_module_get(protocol);
> }
Hm, i just discovered a tiny issue here as putting can_try_module_get() into
the 'else' path is not needed.
Will send a V2 in a few minutes.
Regards,
Oliver
--
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