From: Amerigo Wang Date: Wed, 31 Mar 2010 21:30:52 +0000 (+0000) Subject: bonding: fix potential deadlock in bond_uninit() X-Git-Tag: v2.6.34-rc4~64^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e2e61fbf8ad016d24e4af0afff13505f3dd2a2a;p=pandora-kernel.git bonding: fix potential deadlock in bond_uninit() bond_uninit() is invoked with rtnl_lock held, when it does destroy_workqueue() which will potentially flush all works in this workqueue, if we hold rtnl_lock again in the work function, it will deadlock. So move destroy_workqueue() to destructor where rtnl_lock is not held any more, suggested by Eric. Signed-off-by: WANG Cong Cc: Jay Vosburgh Cc: "David S. Miller" Cc: Stephen Hemminger Cc: Jiri Pirko Cc: "Eric W. Biederman" Signed-off-by: David S. Miller --- Reading git-diff-tree failed