]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Clear failover_pending if unable to schedule
authorSukadev Bhattiprolu <sukadev@linux.ibm.com>
Wed, 3 Feb 2021 05:08:02 +0000 (21:08 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 18:36:22 +0000 (10:36 -0800)
commit0f0572eb446d3f2cb197a499b9d24590878ba20e
tree450f9dd80e6b28e452d194666e95112b3464291e
parenta41ae087d81df29cd54fcd0668856924f1e79137
ibmvnic: Clear failover_pending if unable to schedule

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: b2b99b380b03 ("powerpc/vnic: Extend "failover pending" window")
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Tested-by: Cristobal Forno <cforno12@linux.ibm.com>
Link: https://lore.kernel.org/r/20210203050802.680772-1-sukadev@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c