]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Use rtnl lock/unlock when changing device flags
authorEli Cohen <eli@mellanox.co.il>
Tue, 15 Jul 2008 06:48:51 +0000 (23:48 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 15 Jul 2008 06:48:51 +0000 (23:48 -0700)
commitf46acbc8c29b701210fae4b32cfc636fb343afb2
treec132fc0580deebde3dc49c59bac9c4a559aef192
parent5f314e547017102bc000f3915683db2224b4e4c0
IPoIB: Use rtnl lock/unlock when changing device flags

Use of this lock is required to synchronize changes to the netdvice's
data structs.  Also move the call to ipoib_flush_paths() after the
modification of the netdevice flags in set_mode().

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c