diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-01-15 10:23:37 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-14 18:50:46 -0800 |
commit | 0917b9334b1cc130e91a53b2e3bbaae760fc50ee (patch) | |
tree | 5572e041ce2e4e1e2dca2d3e9d9178c386bfae53 /drivers/isdn/hisax/q931.c | |
parent | bdffbb8e2630feb258d848cdfabaebbdb8105864 (diff) |
bonding: use __dev_get_by_name instead of dev_get_by_name to find interface
The following call chain indicates that bond_do_ioctl() is protected
under rtnl_lock. If we use __dev_get_by_name() instead of
dev_get_by_name() to find interface handler in it, this would
help us avoid to change reference counter of interface once.
dev_ioctl()
rtnl_lock()
dev_ifsioc()
bond_do_ioctl()
rtnl_unlock()
Additionally we also change the coding style in bond_do_ioctl(),
letting it more readable for us.
Cc: Jay Vosburgh <fubar@us.ibm.com>
Cc: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/hisax/q931.c')
0 files changed, 0 insertions, 0 deletions