[ofw][PATCH] [IBBUS] Right treatment for async process of send MAD completion

Sean Hefty sean.hefty at intel.com
Mon Oct 26 11:28:23 PDT 2009


>Index: D:/windows/MLNX_WinOF_trunk/core/al/kernel/al_smi.c
>===================================================================
>--- D:/windows/MLNX_WinOF_trunk/core/al/kernel/al_smi.c (revision 4987)
>+++ D:/windows/MLNX_WinOF_trunk/core/al/kernel/al_smi.c (revision 4992)
>@@ -893,7 +893,10 @@
>
>  /* Construct a send work completion. */
>  cl_memclr( &wc, sizeof( ib_wc_t ) );
>- wc.wr_id = p_mad_wr->send_wr.wr_id;
>+ if (p_mad_wr) {
>+  // Handling the special race where p_mad_wr that comes from spl_qp
>can be NULL

Comment mentions 'race' condition, rather than insufficient memory as the
problem.

- Sean




More information about the ofw mailing list