summaryrefslogtreecommitdiff
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2024-07-29 16:04:11 +0800
committerIlya Dryomov <idryomov@gmail.com>2024-09-24 22:51:28 +0200
commitadc52461767f675264f2876d61e7220c113023e8 (patch)
treec64561f122bb22e2ee04a1c08f04bf88067ca624 /fs/ceph/super.h
parentc085f6ca956f75d40422db96eaa6298867db8dca (diff)
downloadlwn-adc52461767f675264f2876d61e7220c113023e8.tar.gz
lwn-adc52461767f675264f2876d61e7220c113023e8.zip
ceph: flush all caps releases when syncing the whole filesystem
We have hit a race between cap releases and cap revoke request that will cause the check_caps() to miss sending a cap revoke ack to MDS. And the client will depend on the cap release to release that revoking caps, which could be delayed for some unknown reasons. In Kclient we have figured out the RCA about race and we need a way to explictly trigger this manually could help to get rid of the caps revoke stuck issue. Link: https://tracker.ceph.com/issues/67221 Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index c88bf53f68e9..0020746622fd 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -1268,6 +1268,7 @@ extern bool __ceph_should_report_size(struct ceph_inode_info *ci);
extern void ceph_check_caps(struct ceph_inode_info *ci, int flags);
extern unsigned long ceph_check_delayed_caps(struct ceph_mds_client *mdsc);
extern void ceph_flush_dirty_caps(struct ceph_mds_client *mdsc);
+extern void ceph_flush_cap_releases(struct ceph_mds_client *mdsc);
extern int ceph_drop_caps_for_unlink(struct inode *inode);
extern int ceph_encode_inode_release(void **p, struct inode *inode,
int mds, int drop, int unless, int force);