]> 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)
commitef397a5703a71d9906a9052bbf1e200a89de2fba
tree7ec1df8d9dfabfab411693461b65a3841a3ec276
parent5587d5069b414902e6a6a23c751aa4842f929453
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