diff options
author | Xiubo Li <xiubli@redhat.com> | 2022-10-17 16:17:35 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2022-12-12 19:15:39 +0100 |
commit | 68c62bee9d081cf815310b3a96e38d94fc16007d (patch) | |
tree | 9516c8722d9858c483d4f72fc3f91f2a83031dfd /fs/ceph/super.h | |
parent | ceph: remove useless session parameter for check_caps() (diff) | |
download | linux-68c62bee9d081cf815310b3a96e38d94fc16007d.tar.xz linux-68c62bee9d081cf815310b3a96e38d94fc16007d.zip |
ceph: try to check caps immediately after async creating finishes
We should call the check_caps() again immediately after the async
creating finishes in case the MDS is waiting for caps revocation
to finish.
Link: https://tracker.ceph.com/issues/46904
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index e8bc1d0d2614..e1bd6f487226 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -593,6 +593,8 @@ static inline struct inode *ceph_find_inode(struct super_block *sb, #define CEPH_ASYNC_CREATE_BIT (12) /* async create in flight for this */ #define CEPH_I_ASYNC_CREATE (1 << CEPH_ASYNC_CREATE_BIT) #define CEPH_I_SHUTDOWN (1 << 13) /* inode is no longer usable */ +#define CEPH_I_ASYNC_CHECK_CAPS (1 << 14) /* check caps immediately after async + creating finishes */ /* * Masks of ceph inode work. |