diff options
author | Yan, Zheng <zyan@redhat.com> | 2019-06-02 03:45:38 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2019-07-08 14:01:45 +0200 |
commit | 87bc5b895d94a0f40fe170d4cf5771c8e8f85d15 (patch) | |
tree | af317e037b3f4e23b24d483f4f6db617cf3e905b /fs/ceph/super.h | |
parent | ceph: initialize superblock s_time_gran to 1 (diff) | |
download | linux-87bc5b895d94a0f40fe170d4cf5771c8e8f85d15.tar.xz linux-87bc5b895d94a0f40fe170d4cf5771c8e8f85d15.zip |
ceph: use ceph_evict_inode to cleanup inode's resource
remove_session_caps() relies on __wait_on_freeing_inode(), to wait for
freeing inode to remove its caps. But VFS wakes freeing inode waiters
before calling destroy_inode().
Cc: stable@vger.kernel.org
Link: https://tracker.ceph.com/issues/40102
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.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, 1 insertions, 1 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index a592d4a8266c..30e9a4e415cc 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h @@ -884,7 +884,7 @@ static inline bool __ceph_have_pending_cap_snap(struct ceph_inode_info *ci) extern const struct inode_operations ceph_file_iops; extern struct inode *ceph_alloc_inode(struct super_block *sb); -extern void ceph_destroy_inode(struct inode *inode); +extern void ceph_evict_inode(struct inode *inode); extern void ceph_free_inode(struct inode *inode); extern int ceph_drop_inode(struct inode *inode); |