]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:22:17 +0000 (08:22 +0200)
commit812810399999a673d30f9d04d38659030a28051a
treeda82b625f6fbb164702267fa50787bb75e6e1b8a
parent42fa0e35d6e0972780c0ca195402cfad4067fe8d
ceph: use ceph_evict_inode to cleanup inode's resource

[ 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>
fs/ceph/inode.c
fs/ceph/super.c
fs/ceph/super.h