]> Pileus Git - ~andy/linux/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)
commitdfdaa95c7abc3dc7acf44b0c4aeac4c3c44966d6
tree7670f9db2afeb1857f6a69e2ca65e7a4f2b0e8ba
parentdcb30e659287a6b40dafed1362532da42ec27229
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