[ofw] [Patch][Core] Fix possible BSOD during shutdown

Smith, Stan stan.smith at intel.com
Tue May 11 09:39:27 PDT 2010


Alex Naslednikov wrote:
> Avoid the BSOD that can happen as a race consequence.
> Signed-off by: Alexander Naslednikov (xalex at mellanox.co.il)
> Index: D:/windows/MLNX_VPI_trunk/core/al/kernel/al_smi.c
> ===================================================================
> --- D:/windows/MLNX_VPI_trunk/core/al/kernel/al_smi.c (revision 5854)
> +++ D:/windows/MLNX_VPI_trunk/core/al/kernel/al_smi.c (revision 5855)
> @@ -3299,7 +3299,14 @@
>
>   CL_ASSERT( mad_svc_context );
>   CL_ASSERT( p_mad_response );
> - CL_ASSERT( p_mad_response->send_context1 );
> +
> +
> + if ( !p_mad_response->send_context1 ) {
> +  CL_ASSERT( p_mad_response->send_context1 );
> +  ib_put_mad( p_mad_response );
> +  AL_EXIT( AL_DBG_SMI );
> +  return;
> + }
>
>   /* Initialize pointers. */
>   p_spl_qp_svc = mad_svc_context;

Hello,
  Your patch does indeed cure the intermittent shutdown crash. As noted in previous email, the fix does not address the 'real' race condition; although preventing any crash is goodness.
Point being, why retain the 'CL_ASSERT( p_mad_response->send_context1 );' statement?

stan.



More information about the ofw mailing list