]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix potential double free of SetSnapRequest instance 8803/head
authorrunsisi <runsisi@zte.com.cn>
Thu, 21 Apr 2016 06:48:55 +0000 (14:48 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 Apr 2016 08:27:29 +0000 (10:27 +0200)
commit8cae07c10b9cb62af87d494724586c945f181127
treefeec743e3a59f4d6d5ac8a4e3102d6eaefe2cb25
parent96b3726d74cb7bbcacdd22e0ab0fe233e4c4d829
librbd: fix potential double free of SetSnapRequest instance

if image feature EXCLUSIVE_LOCK is not enabled we should not try to
initialize the exclusive lock, or we may end with two async Contexts
to finish the same SetSnapRequest instance

Fixes: http://tracker.ceph.com/issues/15571
Signed-off-by: runsisi <runsisi@zte.com.cn>
(cherry picked from commit 0a6eaac12fe29762c3dd29068f9427840cfea100)
src/librbd/image/SetSnapRequest.cc