Hi Marvin,
Ok, thanks for clarifying.
I think you're hitting a bug that was fixed with the following commit:
FSAL_RGW: restore unconditional close of opened files
This behavior was inadvertently changed in a5db2bed7, restore it.
Required to...store data with NFSv4.
Change-Id: I68887e9c7265ff80c36c25d1f3e2c7de98d1e423
Signed-off-by: Matt Benjamin <mbenjamin(a)redhat.com>
(cherry picked from commit 1b9dafe193307f8663d82a4e9c9bbe6c8beb2a4a)
The fix is present on the 2.8 branch (e.g., 2.8.3) and above.
regards,
Matt
On Wed, Nov 27, 2019 at 1:21 AM <fanzi2009(a)hotmail.com> wrote:
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
_______________________________________________
Devel mailing list -- devel(a)lists.nfs-ganesha.org
To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org
--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103
http://www.redhat.com/en/technologies/storage
tel. 734-821-5101
fax. 734-769-8938
cel. 734-216-5309