[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHXqBFJzomhYjQvF+3+aNRjpZzByu-U=s5rGVnxwyL+6vemPTw@mail.gmail.com>
Date: Thu, 14 Mar 2013 00:22:30 +0100
From: Michał Mirosław <mirqus@...il.com>
To: Pravin B Shelar <pshelar@...ira.com>
Cc: davem@...emloft.net, stephen@...workplumber.org,
netdev@...r.kernel.org, jesse@...ira.com
Subject: Re: [PATCH net-next 1/6] GRE: Use RTNL for atomic protocol registration.
2013/3/13 Pravin B Shelar <pshelar@...ira.com>:
> Currently gre demultiplexer uses its own spin-lock. We should
> rather RTNL lock.
[...]
> + rtnl_lock();
> err = gre_add_protocol(&gre_pptp_protocol, GREPROTO_PPTP);
> + rtnl_unlock();
Why not keep lock/unlock inside gre_add/del_protocol()?
Best Regards,
Michał Mirosław
--
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