Commit d88b0231 authored by Xiangning Yu's avatar Xiangning Yu Committed by Greg Kroah-Hartman
Browse files

bonding: re-evaluate force_primary when the primary slave name changes



[ Upstream commit eb55bbf8 ]

There is a timing issue under active-standy mode, when bond_enslave() is
called, bond->params.primary might not be initialized yet.

Any time the primary slave string changes, bond->force_primary should be
set to true to make sure the primary becomes the active slave.

Signed-off-by: default avatarXiangning Yu <yuxiangning@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a988ccde
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment