]> 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)
commit30723f6fe34daf75c6449e899236842360e7d21e
tree7670f9db2afeb1857f6a69e2ca65e7a4f2b0e8ba
parentb70f4c6d9ea013e13ea5cdb25ca0dd17f25bd231
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