[ofw] RE: IBBUS - prevent IOU mgr duplicate deref on al obj h_ca

Leonid Keller leonid at mellanox.co.il
Tue May 19 07:11:09 PDT 2009


OK with me. 

> -----Original Message-----
> From: Smith, Stan [mailto:stan.smith at intel.com] 
> Sent: Monday, May 18, 2009 10:20 PM
> To: Leonid Keller
> Cc: ofw at lists.openfabrics.org
> Subject: IBBUS - prevent IOU mgr duplicate deref on al obj h_ca
> 
> 
> Hello,
>   When disabling the HCA driver and there is an SRP target in 
> the fabric, the iou manger can decrement the IOU's PDO hca 
> refcnt count twice which leads to a IBAL ASSERT failure in ibbus.
> Indicate the HCA reference is removed in iou_mgr_iou_remove() 
> so it is not dereferenced again in free_iou_mgr().
> 
> I can commit upon your approval.
> 
> Thank you,
> 
> Stan.
> 
> 
> Signed off by stan.smith at intel.com
> 
> diff U3 C:/Documents and Settings/scsmith/Local 
> Settings/Temp/bus_iou-revBASE.svn006.tmp.c C:/Documents and 
> Settings/scsmith/My 
> Documents/openIB-windows/SVN/gen1/trunk/core/bus/kernel/bus_iou_mgr.c
> --- C:/Documents and Settings/scsmith/Local 
> Settings/Temp/bus_iou-revBASE.svn006.tmp.c  Mon May 18 12:08:21 2009
> +++ C:/Documents and Settings/scsmith/My 
> +++ 
> Documents/openIB-windows/SVN/gen1/trunk/core/bus/kernel/bus_iou_mgr.
> +++ c  Mon May 18 12:08:04 2009
> @@ -893,6 +893,8 @@
>         p_pnp_rec->pnp_rec.context = NULL;
> 
>         deref_al_obj( &p_ext->h_ca->obj );
> +       p_ext->h_ca = NULL;
> +
>         cl_mutex_release( &gp_iou_mgr->pdo_mutex );
> 
>         BUS_EXIT( BUS_DBG_PNP );
> 



More information about the ofw mailing list