From: Jay Vosburgh Date: Wed, 21 Jul 2010 12:14:48 +0000 (+0000) Subject: bonding: don't lock when copying/clearing VLAN list on slave X-Git-Tag: v2.6.36-rc1~571^2~134 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03dc2f4c525afb9488edb687c2e1f7057d59b40e;p=pandora-kernel.git bonding: don't lock when copying/clearing VLAN list on slave When copying VLAN information to or removing from a slave during slave addition or removal, the bonding code currently holds the bond->lock for write to prevent concurrent modification of the vlan_list / vlgrp. This is unnecessary, as all of these operations occur under RTNL. Holding the bond->lock also caused might_sleep issues for some drivers' ndo_vlan_* functions. This patch removes the extra locking. Problem reported by Michael Chan Signed-off-by: Jay Vosburgh Cc: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed