]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ReplicatedBackend: take read locks for clone sources during recovery 12844/head
authorSamuel Just <sjust@redhat.com>
Wed, 23 Nov 2016 23:41:13 +0000 (15:41 -0800)
committerSamuel Just <sjust@redhat.com>
Thu, 12 Jan 2017 20:43:18 +0000 (12:43 -0800)
commit68defc2b0561414711d4dd0a76bc5d0f46f8a3f8
tree36547157ccc13d5647251972a393db5899a5687a
parent780c29903249900bd3b5b965732ee164a3e2565d
ReplicatedBackend: take read locks for clone sources during recovery

Otherwise, we run the risk of a clone source which hasn't actually
come into existence yet being used if we grab a clone which *just*
got added the the ssc, but has not yet actually had time to be
created (can't rely on message ordering here since recovery messages
don't necessarily order with client IO!).

Fixes: http://tracker.ceph.com/issues/17831
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PGBackend.h
src/osd/PrimaryLogPG.h
src/osd/ReplicatedBackend.cc
src/osd/ReplicatedBackend.h
src/osd/osd_types.h