[openib-general] RE: [PATCH][kdapl] fix fatal bug in triger the evd upcall

Itamar Rabenstein itamar at mellanox.co.il
Tue May 31 23:40:09 PDT 2005


Hi James,

you replied with "Committed in revision 2514."
But I am checking and you have committed my patch with a change.
Please whenever you decide to change a patch please reply with a reason or 
at least say that you have change it so other can make a review for it.

any way why did you change the patch?  as I said in my mail a return value
from dapl_evd_dequeue can be
queue empty. I don't think we should print "dapl_evd_dequeue failed" for
empty queue it is a good return value. 

 Itamar  

> -----Original Message-----
> From: James Lentini [mailto:jlentini at netapp.com]
> Sent: Tuesday, May 31, 2005 6:32 PM
> To: Itamar
> Cc: James.Lentini at netapp.com; openib-general at openib.org
> Subject: Re: [PATCH][kdapl] fix fatal bug in triger the evd upcall
> 
> 
> 
> Committed in revision 2514.
> 
> On Sun, 29 May 2005, Itamar wrote:
> 
> itamar> Hi James,
> itamar> 	
> itamar> This patch fix a fatal bug that exist in current 
> lastet bits in kdapl (svn rev 2507)
> itamar> As you can see we need to triger the upcall when 
> dapl_evd_dequeue return with good status
> itamar> and quit the method when dapl_evd_dequeue return with 
> non zero status which mean queue is empty.
> itamar> In the current bits no kdapltest can run even the 
> simple quit test.
> itamar> 
> itamar> Please in the future before you commit changes to the 
> svn run a simple regression.
> itamar> Any way with this patch the code is working again.
> itamar> 
> itamar> fix fatal bug in triger the evd upcall 
> itamar> Signed-off-by: Itamar Rabenstein <itamar at mellanox.co.il>
> itamar> 
> itamar> Index: dapl_cno_util.c
> itamar> 
> ===================================================================
> itamar> --- dapl_cno_util.c	(revision 2509)
> itamar> +++ dapl_cno_util.c	(working copy)
> itamar> @@ -115,12 +115,8 @@
> itamar>  
> itamar>  	for (;;) {
> itamar>  		status = 
> dapl_evd_dequeue((DAT_EVD_HANDLE)evd, &event);
> itamar> -		if (DAT_SUCCESS == status) {
> itamar> -			dapl_dbg_log(DAPL_DBG_TYPE_ERR, 
> itamar> -				     "dapl_evd_dequeue 
> failed: %x\n", status);
> itamar> +		if (DAT_SUCCESS != status)
> itamar>  			return;
> itamar> -		}
> itamar> -
> itamar>  		
> cno->cno_upcall.upcall_func(cno->cno_upcall.instance_data,
> itamar>  					    &event, FALSE);
> itamar>  	}
> itamar> -- 
> itamar> Itamar
> itamar> 
> 



More information about the general mailing list