Commit 28a4dafe authored by Sukadev Bhattiprolu's avatar Sukadev Bhattiprolu Committed by Zheng Zengkai
Browse files

ibmvnic: Clear failover_pending if unable to schedule



stable inclusion
from stable-5.10.17
commit 4067ace5f119624aeb91c51e8cbb29ac9fa2150d
bugzilla: 48169

--------------------------------

[ Upstream commit ef66a1ea ]

Normally we clear the failover_pending flag when processing the reset.
But if we are unable to schedule a failover reset we must clear the
flag ourselves. We could fail to schedule the reset if we are in PROBING
state (eg: when booting via kexec) or because we could not allocate memory.

Thanks to Cris Forno for helping isolate the problem and for testing.

Fixes: 1d850493 ("powerpc/vnic: Extend "failover pending" window")
Signed-off-by: default avatarSukadev Bhattiprolu <sukadev@linux.ibm.com>
Tested-by: default avatarCristobal Forno <cforno12@linux.ibm.com>
Link: https://lore.kernel.org/r/20210203050802.680772-1-sukadev@linux.ibm.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent e14fa29f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment