Re: [PATCH 1/7] bonding: fix locking in sysfs primary/active selection

2008-01-18 Thread Jeff Garzik
Jay Vosburgh wrote: Fix the functions that store the primary and active slave options via sysfs to hold the correct locks in the correct order. The bond_change_active_slave and bond_select_active_slave functions both require rtnl, bond->lock for read and curr_slave_lock for write

[PATCH 1/7] bonding: fix locking in sysfs primary/active selection

2008-01-17 Thread Jay Vosburgh
Fix the functions that store the primary and active slave options via sysfs to hold the correct locks in the correct order. The bond_change_active_slave and bond_select_active_slave functions both require rtnl, bond->lock for read and curr_slave_lock for write_bh, and no other lock