Re: [PATCH 6/7] bonding: fix lock ordering for rtnl and bonding_rwsem

2008-01-17 Thread Andrew Morton
On Thu, 17 Jan 2008 16:25:02 -0800 Jay Vosburgh <[EMAIL PROTECTED]> wrote: > Fix the handling of rtnl and the bonding_rwsem to always be acquired > in a consistent order (rtnl, then bonding_rwsem). > > The existing code sometimes acquired them in this order, and sometimes > in the opposite order,

[PATCH 6/7] bonding: fix lock ordering for rtnl and bonding_rwsem

2008-01-17 Thread Jay Vosburgh
Fix the handling of rtnl and the bonding_rwsem to always be acquired in a consistent order (rtnl, then bonding_rwsem). The existing code sometimes acquired them in this order, and sometimes in the opposite order, which opens a window for deadlock between ifenslave and sysfs. Signed-off-by: Jay Vo