Frank Filz has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/491405 ) Change subject: Move put_gsh_export(op_ctx->ctx_export) into op_context functions ...................................................................... Move put_gsh_export(op_ctx->ctx_export) into op_context functions To help enforce the lifetime of a gsh_export reference associated with an op context, take care of releasing the reference in the op context management functions. Note that some of the removed put_gsh_export() calls do not have op_ctx->ctx_export as the parameter, but looking at the code above the export being put is in ctx_export anyway. All of this paves the way for much simpler handling of refstr when added to the export. Change-Id: Iec5c3c44d9b3a5e35a7e49a60054468d1d3ac3f1 Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com> --- M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.c M src/FSAL/commonlib.c M src/FSAL/fsal_helper.c M src/FSAL_UP/fsal_up_top.c M src/MainNFSD/nfs_worker_thread.c M src/Protocols/9P/9p_proto_tools.c M src/Protocols/NFS/mnt_Export.c M src/Protocols/NFS/mnt_Mnt.c M src/Protocols/NFS/nfs4_Compound.c M src/Protocols/NFS/nfs4_op_free_stateid.c M src/Protocols/NFS/nfs4_op_layoutreturn.c M src/Protocols/NFS/nfs4_op_lookup.c M src/Protocols/NFS/nfs4_op_lookupp.c M src/Protocols/NFS/nfs4_op_putfh.c M src/Protocols/NFS/nfs4_op_putrootfh.c M src/Protocols/NFS/nfs4_op_readdir.c M src/Protocols/NFS/nfs4_op_restorefh.c M src/Protocols/NFS/nfs4_op_savefh.c M src/Protocols/NFS/nfs4_op_secinfo.c M src/Protocols/NFS/nfs4_op_secinfo_no_name.c M src/Protocols/NFS/nfs4_pseudo.c M src/Protocols/RQUOTA/rquota_getquota.c M src/Protocols/RQUOTA/rquota_setquota.c M src/SAL/nfs4_state.c M src/SAL/state_async.c M src/SAL/state_deleg.c M src/SAL/state_layout.c M src/SAL/state_lock.c M src/gtest/gtest.hh M src/support/ds.c M src/support/export_mgr.c M src/support/exports.c 32 files changed, 66 insertions(+), 137 deletions(-) git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/05/491405/1 -- To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/491405 To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings Gerrit-Project: ffilz/nfs-ganesha Gerrit-Branch: next Gerrit-Change-Id: Iec5c3c44d9b3a5e35a7e49a60054468d1d3ac3f1 Gerrit-Change-Number: 491405 Gerrit-PatchSet: 1 Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com> Gerrit-MessageType: newchange