]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: hold cache_lock while clearing cache nonexistence flags 19801/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 27 Sep 2017 13:40:08 +0000 (09:40 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 5 Jan 2018 13:22:03 +0000 (14:22 +0100)
commit24f768dc68a3feb640c76511162df23f2db9abc1
tree7b2dbdd78838389ca4ef218cdfe1b0b879352f89
parentf39625901cced8480fd6962ce1f41f03cc8be899
librbd: hold cache_lock while clearing cache nonexistence flags

When transitioning from a snapshot that had an associated parent
to a snapshot where the parent was flattened and removed, the cache
was being referenced without holding the required lock.

Fixes: http://tracker.ceph.com/issues/21558
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 16ef97830cde30efb96f7aee69834b3a5c2d5248)
src/librbd/image/RefreshParentRequest.cc
src/librbd/image/SetSnapRequest.cc