]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix copy-on-read / resize down race condition
authorJason Dillaman <dillaman@redhat.com>
Wed, 21 Jan 2015 13:58:57 +0000 (08:58 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 23 Jan 2015 17:27:41 +0000 (12:27 -0500)
commitbda293adc254d221f9d727f1b5ddfcfca8c6249d
treed67a5450c72cc221fe1730ec700ffbd7d5638fe7
parente9170335a2176dd00e73c004b3a89b9eabd0ba7f
librbd: fix copy-on-read / resize down race condition

There was a rare race condition between a pending CoR operation
and a resize down operation resulting in a CoR copyup past the
new, reduced parent overlap.  This commit also adds additional
log message details for CoR.

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