]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ceph: use ceph_evict_inode to cleanup inode's resource
authorYan, Zheng <zyan@redhat.com>
Sun, 2 Jun 2019 01:45:38 +0000 (09:45 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 26 Sep 2019 04:34:52 +0000 (00:34 -0400)
commiteb0ba4bdcf12d9c29b9d3318627ad9ff3aff5471
treeb7e06c12749ff2fe17192b71dcbe752ce21b8017
parentd9167e38ea4c46b3ff69e4b8e7974c6b0fa9b3c6
ceph: use ceph_evict_inode to cleanup inode's resource

BugLink: https://bugs.launchpad.net/bugs/1844558
[ Upstream commit 87bc5b895d94a0f40fe170d4cf5771c8e8f85d15 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/ceph/inode.c
fs/ceph/super.c
fs/ceph/super.h