[ofa-general][PATCH] mlx4_core: Synch catastrophic flow with module unload
David Miller
davem at davemloft.net
Mon Jul 13 11:14:07 PDT 2009
From: Yevgeny Petrilin <yevgenyp at mellanox.co.il>
Date: Mon, 13 Jul 2009 18:27:48 +0300
> There is a race condition when the mlx4_core module is being unloaded
> during the execution of restart task due to catastrophic error.
> Added a global mutex that synchs those operations. If the catastrophic task
> tries to catch the mutex, and it is already taken, it means that somebody is unloading the
> module, and there is no point in executing the restart operation.
> If the unload function tries to catch the mutex and it is taken,
> it would wait for the catas task to finish and then unload the module.
>
> Signed-off-by: Yevgeny Petrilin <yevgenyp at mellanox.co.il>
Applied, thanks.
More information about the general
mailing list