]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8af20165e0c84eb2c0e86cc839e8f518b1234f5b
tree7ec1df8d9dfabfab411693461b65a3841a3ec276
parent140b2650cf6dd89dd11127adb570e385bab1efa4
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