]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: prevent race condition between resize requests 5769/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 11 Aug 2015 13:26:33 +0000 (09:26 -0400)
committerLoic Dachary <ldachary@redhat.com>
Sun, 6 Sep 2015 12:09:34 +0000 (14:09 +0200)
commit00e73adb03ef4453599268779fe354e4e8513e54
tree4e1a519469307f18bde6fbac158d594c7abc7181
parentfa74ea10ac25fe93f359ccf0fd036d567e9610fe
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>
(cherry picked from commit 6ec431bac1cf9446f3af90209d193dfcf003f2c5)
src/librbd/AsyncResizeRequest.cc