]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: clear inode pointer when snap realm gets dropped by its inode
authorYan, Zheng <zyan@redhat.com>
Thu, 10 Jan 2019 07:41:09 +0000 (15:41 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 21 Jan 2019 13:52:41 +0000 (14:52 +0100)
commitcfe6f17db3f367931b245cdca68efcec3f9ba38c
tree32bb67b2dd4df148f628eb4af8bcdf612622e66b
parent607d144b83b16847bc18fb058d4d51857c4ff9c6
ceph: clear inode pointer when snap realm gets dropped by its inode

snap realm and corresponding inode have pointers to each other.
The two pointer should get clear at the same time. Otherwise,
snap realm's pointer may reference freed inode.

Cc: stable@vger.kernel.org # 4.17+
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Luis Henriques <lhenriques@suse.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c