]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: avoid close race-condition within ImageState
authorJason Dillaman <dillaman@redhat.com>
Tue, 23 Feb 2016 15:49:24 +0000 (10:49 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 23 Feb 2016 15:53:13 +0000 (10:53 -0500)
commit514519a69f3bc87c35bd9320101191b92bae609d
tree6cd8f4ca83f3b4f6d616b31514cdd25afabfa9cb
parentdd17b513676e03cd5605d8fca338d9456d19df17
librbd: avoid close race-condition within ImageState

The lock was previously unlocked/locked to avoid lock cycles. This
creates an issue when closing the image because the another thread
might have already deleted the ImageState before the lock could be
re-locked.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageState.cc
src/librbd/ImageState.h