macvtap: Convert to using rtnl lock
authorVlad Yasevich <vyasevic@redhat.com>
Tue, 25 Jun 2013 20:04:19 +0000 (16:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 23:44:56 +0000 (16:44 -0700)
commit441ac0fcaadc76ad09771812382345001dd2b813
tree7ec1df8d9dfabfab411693461b65a3841a3ec276
parent2d48d67fa8cd129ea85ea02d91b4a793286866f8
macvtap: Convert to using rtnl lock

Macvtap uses a private lock to protect the relationship between
macvtap_queue and macvlan_dev.  The private lock is not needed
since the relationship is managed by user via open(), release(),
and dellink() calls.  dellink() already happens under rtnl, so
we can safely convert open() and release(), and use it in ioctl()
as well.

Suggested by Eric Dumazet.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c