]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: convert netlink tap spinlock to mutex
authorCong Wang <xiyou.wangcong@gmail.com>
Wed, 6 Dec 2017 23:03:20 +0000 (15:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 15:56:55 +0000 (10:56 -0500)
commit08fabb60666d03143b75ee441b6a2d94e6a1256b
tree63526e2298526f0d7de20b826de772385b1fd3aa
parent633e5870ca9b24b427540667f19b0b58dae5da9e
netlink: convert netlink tap spinlock to mutex

Both netlink_add_tap() and netlink_remove_tap() are
called in process context, no need to bother spinlock.

Note, in fact, currently we always hold RTNL when calling
these two functions, so we don't need any other lock at
all, but keeping this lock doesn't harm anything.

Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c