]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix Client::handle_cap_flushsnap_ack() crash 14563/head
authorYan, Zheng <zyan@redhat.com>
Tue, 10 Jan 2017 09:16:40 +0000 (17:16 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Apr 2017 21:40:22 +0000 (23:40 +0200)
commitba7b6ced0a69991bf4f095172575dc536736d40d
tree4f189e4dcff07623ce3bf9f4a9944e41d934cbd7
parenteb84959bac369dbb86674f9e4225ba1c836c104c
client: fix Client::handle_cap_flushsnap_ack() crash

Struct CapSnap holds a reference to its parent inode. So erasing
struct CapSnap from Inode::cap_snaps may drop inode's last reference.
The inode gets freed in the middle of erasing struct CapSnap

Fixes: http://tracker.ceph.com/issues/18460
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 525c52fd491ed1ced385c8047872e3f557f8423f)
src/client/Client.cc