]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: prevent race condition between resize requests 5544/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 11 Aug 2015 13:26:33 +0000 (09:26 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 11 Aug 2015 13:26:33 +0000 (09:26 -0400)
commit6ec431bac1cf9446f3af90209d193dfcf003f2c5
tree5f10808cb7b2f6a367411d4f79a3535d51a9f068
parente35d27fc69d1b7a3be7a61237ebf1e6bdd9070dd
librbd: prevent race condition between resize requests

It was possible that the same resize request could be sent twice
if a completed resize op started a newly created resize op while
it was also being concurrently started by another thread.

Fixes: #12664
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AsyncResizeRequest.cc