]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Wait for MC reboot to complete before scheduling driver reset
authorDaniel Pieczko <dpieczko@solarflare.com>
Wed, 18 Sep 2013 09:16:24 +0000 (10:16 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 20 Sep 2013 16:18:33 +0000 (17:18 +0100)
commitff672c5ba70cf51dd8823b2026cff7803e732ee0
tree7670f9db2afeb1857f6a69e2ca65e7a4f2b0e8ba
parent240c5e682fe3562d8887fa106b8b19e318a0b2d7
sfc: Wait for MC reboot to complete before scheduling driver reset

Scheduling a reset following an MC reboot event before waiting for
reboot to complete results in a race that can lead to a state where
must_realloc_vis is false in efx_ef10_fini_dmaq() but the VIs have
been destroyed during the MC reboot.

To avoid MC errors when trying to remove VIs that do not exist, wait
for the MC reboot to complete before scheduling the reset.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/mcdi.c