]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: hold cache_lock while clearing cache nonexistence flags 19800/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:20:00 +0000 (14:20 +0100)
commita15eb7df1e3b6d273b4366e7afefd3c2ade4775e
treede4255f1a01e9b0d028de1e3b879722f7ee77459
parentbccb4839ee8fde4636001976df1890b7a0f1f0a0
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