[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090713.111407.196601373.davem@davemloft.net>
Date: Mon, 13 Jul 2009 11:14:07 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yevgenyp@...lanox.co.il
Cc: rdreier@...co.com, general@...ts.openfabrics.org,
netdev@...r.kernel.org
Subject: Re: [ofa-general][PATCH] mlx4_core: Synch catastrophic flow with
module unload
From: Yevgeny Petrilin <yevgenyp@...lanox.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@...lanox.co.il>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists