]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: remove dev_base_lock use from enable_bearer
authorYing Xue <ying.xue@windriver.com>
Mon, 17 Jun 2013 14:54:51 +0000 (10:54 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jun 2013 22:53:01 +0000 (15:53 -0700)
commit802746a80469cd5138643d944dc4a465ae125677
tree5130503fa11ba0c7ec74174165ba332ed513b88a
parent85482b5e9e5a478a960fca46c268ec1bd4f825bc
tipc: remove dev_base_lock use from enable_bearer

Convert enable_bearer() to RCU locking with dev_get_by_name().

Based on a similar changeset in commit 57ee654b ["aoe: remove
dev_base_lock use from aoecmd_cfg_pkts()"] -- quoting that:

  "dev_base_lock is the legacy way to lock the device list,
   and is planned to disappear. (writers hold RTNL, readers
   hold RCU lock)"

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/eth_media.c
net/tipc/ib_media.c