Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-19 Thread nagendra
Hi Thuan, Ack from me. Thanks, Nagendra, 91-9866424860 www.hasolutions.in https://www.linkedin.com/company/hasolutions/ High Availability Solutions Pvt. Ltd. - OpenSAF Support and Services - Original Message - Subject: [PATCH 1/1] smf: Increase

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-19 Thread Tran Thuan
; lennart.l...@ericsson.com; gary@dektech.com.au Cc: opensaf-devel@lists.sourceforge.net Subject: Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882] Hi Nagu, Thanks for your comment. If m_NCS_IPC_SEND fails, smfa_cbk_ok_resp_process() is called to free

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-16 Thread Nguyen Luu
Hi Thuan, Ack from me. Just a suggestion for more correct comment (in case there's only one handle matching the callback label): /* Descrease the cbk count */ => /* Remove the agent hdl from the cbk_list */ Thanks, Nguyen On 7/13/2018 10:52 AM, thuan.tran wrote: Sometimes, callback agent

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-15 Thread Tran Thuan
Hi Nagu, Thanks for your comment. If m_NCS_IPC_SEND fails, smfa_cbk_ok_resp_process() is called to free memory. Best Regards, Thuan From: nagen...@hasolutions.in Sent: Friday, July 13, 2018 9:29 PM To: thuan.tran ; nguyen.tk@dektech.com.au; lennart.l...@ericsson.com;

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-13 Thread nagendra
Hi Thuan, Nice work. Ack from me. It would be nice if the memory allocated above in the function need to be deallocated if m_NCS_IPC_SEND fails. Thanks, Nagendra, 91-9866424860 www.hasolutions.in https://www.linkedin.com/company/hasolutions/ High Availability Solutions Pvt.

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-09 Thread Nguyen Luu
Tran Thuan ; lennart.l...@ericsson.com; Gary Lee Cc: opensaf-devel@lists.sourceforge.net Subject: Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882] Hi Thuan, I think it's not a good idea and also not that critical to crash the SMF client just because of the age

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-08 Thread Tran Thuan
ubject: Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882] Hi, A failed calloc() breaks the main flow and intended purpose of the function, and perhaps the original author saw no better way to gracefully handle and signify the failure except to assert. I

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-06 Thread Nguyen Luu
...@ericsson.com; Gary Lee Cc: opensaf-devel@lists.sourceforge.net Subject: Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882] Hi Thuan, I think it's not a good idea and also not that critical to crash the SMF client just because of the agent failing to send a callback

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-06 Thread Tran Thuan
EK VietNam > > -Original Message- > From: Nguyen Luu > Sent: Wednesday, July 4, 2018 5:08 PM > To: thuan.tran ; lennart.l...@ericsson.com > Cc: opensaf-devel@lists.sourceforge.net > Subject: Re: [devel] [PATCH 1/1] smf: Increase cbk count before post > the evt to

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-05 Thread Nguyen Luu
, July 4, 2018 5:08 PM To: thuan.tran ; lennart.l...@ericsson.com Cc: opensaf-devel@lists.sourceforge.net Subject: Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882] Hi, One comment from me for the patch: With the new flow, the matched hdl should be removed from

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-05 Thread Tran Thuan
Subject: Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882] Hi, One comment from me for the patch: With the new flow, the matched hdl should be removed from the cbk_list if posting the message to the client mailbox fails. A general comment: The original issue

Re: [devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-07-04 Thread Nguyen Luu
Hi, One comment from me for the patch: With the new flow, the matched hdl should be removed from the cbk_list if posting the message to the client mailbox fails. A general comment: The original issue happened because of a race condition in which the smfa_cb was used in different threads

[devel] [PATCH 1/1] smf: Increase cbk count before post the evt to client [#2882]

2018-06-25 Thread thuan.tran
Sometimes, callback agent dispatch and fail at saSmfReponse() because cbk list is empty, agent by somehow handle evt before increase cbk count. To avoid this, increase cbk count before post the evt. --- src/smf/agent/smfa_utils.c | 38 -- 1 file changed, 20