From 8183c2cbf2b8e48b14e3f65abffe1894c968152d Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Thu, 5 Sep 2024 14:01:37 +0530 Subject: [PATCH] vfs_ceph_new: Hold a config reference in vfs_ceph_fh This is required to perform the cleanup when fsp extension destructor is called as part of VFS_REMOVE_FSP_EXTENSION where mount information and function references are to be used in upcoming changes. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15703 Signed-off-by: Anoop C S Reviewed-by: Guenther Deschner (cherry picked from commit 250af54250bed87928250b95db663ff13cc1f42a) --- source3/modules/vfs_ceph_new.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/modules/vfs_ceph_new.c b/source3/modules/vfs_ceph_new.c index 45b3c84b8ae..266871687a1 100644 --- a/source3/modules/vfs_ceph_new.c +++ b/source3/modules/vfs_ceph_new.c @@ -620,6 +620,7 @@ struct vfs_ceph_fh { struct cephmount_cached *cme; struct UserPerm *uperm; struct files_struct *fsp; + struct vfs_ceph_config *config; struct vfs_ceph_iref iref; struct Fh *fh; int fd; @@ -697,6 +698,7 @@ static int vfs_ceph_add_fh(struct vfs_handle_struct *handle, (*out_cfh)->cme = cme; (*out_cfh)->uperm = uperm; (*out_cfh)->fsp = fsp; + (*out_cfh)->config = config; (*out_cfh)->fd = -1; return 0; } -- 2.47.2