From: Ying Xue Date: Wed, 15 Jan 2014 02:23:37 +0000 (+0800) Subject: bonding: use __dev_get_by_name instead of dev_get_by_name to find interface X-Git-Tag: v3.14-rc1~94^2~179^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0917b9334b1cc130e91a53b2e3bbaae760fc50ee;p=pandora-kernel.git 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 Cc: Veaceslav Falico Signed-off-by: Ying Xue Acked-by: Veaceslav Falico Signed-off-by: David S. Miller --- Reading git-diff-tree failed