]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: hold cache_lock while clearing cache nonexistence flags 17992/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 27 Sep 2017 13:40:08 +0000 (09:40 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 27 Sep 2017 13:40:08 +0000 (09:40 -0400)
commit16ef97830cde30efb96f7aee69834b3a5c2d5248
tree468c2ed62f13504e5d84eebea8c1d4fde93b9cd0
parent4483bc7c61a6f61f6ce70adbfeb574524b87afa6
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>
src/librbd/image/RefreshParentRequest.cc
src/librbd/image/SetSnapRequest.cc