aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJay Vosburgh <fubar@us.ibm.com>2008-01-17 16:24:57 -0800
committerJeff Garzik <jeff@garzik.org>2008-01-18 14:38:38 -0500
commite934dd7862e7f613b2ce9730d548a0a70913c8f7 (patch)
tree9f6cd6b7e15614bc47d85806e4b5472ac65ab2ca /drivers/usb
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input (diff)
downloadlinux-dev-e934dd7862e7f613b2ce9730d548a0a70913c8f7.tar.xz
linux-dev-e934dd7862e7f613b2ce9730d548a0a70913c8f7.zip
bonding: fix locking in sysfs primary/active selection
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 locks. This is so that the lower level mode-specific functions (notably for balance-alb mode) can release locks down to just rtnl in order to call, e.g., dev_set_mac_address with the locks it expects (rtnl only). Signed-off-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: Andy Gospodarek <andy@greyhouse.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions