On Wed, Sep 28, 2016 at 10:50 PM, Frank Filz <ffilz...@mindspring.com> wrote: > Note that FSALs intended for use without MDCACHE are refcounted, they MUST > implement get_ref and put_ref. > > I'm not sure how that interacts with vfs_locate_state since I think the > refcount requirement was put in after the brief test period of cacheless > FSAL_VFS.
This is exact issue I am facing, If I increment ref of vfs_state_entry in get_ref (and dec in put_ref), Code hangs in nfs4_op_close in rw_lock. nfs4_op_close.c 245 PTHREAD_RWLOCK_wrlock(&data->current_obj->state_hdl->state_lock); If I dont take ref code results in segfault which is expected - it will not have valid state_hdl ptr. Tushar. ------------------------------------------------------------------------------ _______________________________________________ Nfs-ganesha-devel mailing list Nfs-ganesha-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel