gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] fd not being refed in syncop_opendir_cbk


From: Anand Avati
Subject: Re: [Gluster-devel] fd not being refed in syncop_opendir_cbk
Date: Wed, 23 Jan 2013 10:30:19 -0800



On Wed, Jan 23, 2013 at 3:08 AM, Raghavendra Bhat <address@hidden> wrote:

Hi,

syncop_opendir_cbk does not ref the fd while returning unlike syncop_open_cbk which results in crash due to fd being destroyed early and then being accessed (bug 885008). A patch has been submitted for review. ( http://review.gluster.org/#change,4282). Please review it and provide inputs.


Doing the extra fd_ref() in syncop_open[dir]_cbk seems to be uglier than thought. I see that it is already resulting in fd ref leak in gfapi. It is safer to remove the extra ref/unref and make open[dir]() return only success or failure with op_ret.

AvatiĀ 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]