I'm sorry that I said not very clear before. I used NFS 4.1 protocol. I found fsal_close and rgw_fsal_close2 are called. But rgw_close() is never called. Below is the callstack for rgw_fsal_close2. The `state` parameter is not NULL, so rgw_close() is not called. (gdb) bt #0 rgw_fsal_close2 (obj_hdl=0x7ffe14005f10, state=0x7ffe14028650) at /home/work/nfs-ganesha/src/FSAL/FSAL_RGW/handle.c:1524 #1 0x000000000050f608 in mdcache_close2 (obj_hdl=0x7ffe1407c0d8, state=0x7ffe14028650) at /home/work/nfs-ganesha/src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_file.c:830 #2 0x00000000004a38c3 in _state_del_locked (state=0x7ffe14028650, func=0x53e2f8 <__func__.19139> "nfs4_op_close", line=298) at /home/work/nfs-ganesha/src/SAL/nfs4_state.c:499 #3 0x0000000000457b99 in nfs4_op_close (op=0x7ffe70062830, data=0x7fffc41f5fc0, resp=0x7ffe70004f70) at /home/work/nfs-ganesha/src/Protocols/NFS/nfs4_op_close.c:298 #4 0x0000000000454ec4 in nfs4_Compound (arg=0x7ffe70056b88, req=0x7ffe70056480, res=0x7ffe7002ddf0) at /home/work/nfs-ganesha/src/Protocols/NFS/nfs4_Compound.c:942 #5 0x0000000000451f0b in nfs_rpc_process_request (reqdata=0x7ffe70056480) at /home/work/nfs-ganesha/src/MainNFSD/nfs_worker_thread.c:1328 #6 0x0000000000452653 in nfs_rpc_valid_NFS (req=0x7ffe70056480) at /home/work/nfs-ganesha/src/MainNFSD/nfs_worker_thread.c:1538 #7 0x00007ffff7dcf7e0 in svc_vc_decode (req=0x7ffe70056480) at /home/work/nfs-ganesha/src/libntirpc/src/svc_vc.c:829 #8 0x0000000000445b3b in nfs_rpc_decode_request (xprt=0x7ffe80000af0, xdrs=0x7ffe7002e0f0) at /home/work/nfs-ganesha/src/MainNFSD/nfs_rpc_dispatcher_thread.c:1345 #9 0x00007ffff7dcf6f1 in svc_vc_recv (xprt=0x7ffe80000af0) at /home/work/nfs-ganesha/src/libntirpc/src/svc_vc.c:802 #10 0x00007ffff7dcbe0b in svc_rqst_xprt_task (wpe=0x7ffe80000d08) at /home/work/nfs-ganesha/src/libntirpc/src/svc_rqst.c:769 #11 0x00007ffff7dcc266 in svc_rqst_epoll_events (sr_rec=0x399b090, n_events=1) at /home/work/nfs-ganesha/src/libntirpc/src/svc_rqst.c:941 #12 0x00007ffff7dcc4ff in svc_rqst_epoll_loop (sr_rec=0x399b090) at /home/work/nfs-ganesha/src/libntirpc/src/svc_rqst.c:1014 #13 0x00007ffff7dcc5b5 in svc_rqst_run_task (wpe=0x399b090) at /home/work/nfs-ganesha/src/libntirpc/src/svc_rqst.c:1050 #14 0x00007ffff7dd4fc4 in work_pool_thread (arg=0x7ffe7402cab0) at /home/work/nfs-ganesha/src/libntirpc/src/work_pool.c:181 #15 0x000000318b207851 in start_thread () from /lib64/libpthread.so.0 #16 0x000000318aee767d in clone () from /lib64/libc.so.6