]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: race when disabling object map with overlapping in-flight writes 41787/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 18 Jun 2020 19:20:40 +0000 (15:20 -0400)
committerMykola Golub <mgolub@suse.com>
Wed, 9 Jun 2021 11:54:25 +0000 (14:54 +0300)
commita6f16f5c7ecfa43d1aa42073a12a2d19e6c52fb5
treed12bdba4923ad0b0263b15d87714db70627c11cf
parenta10adc8ba2eadbf091335bf34aa3cbe06d8d18a8
librbd: race when disabling object map with overlapping in-flight writes

The block guard that protects against overlapping updates to the object
map needs to be flushed prior to closing the object map instance.

Fixes: https://tracker.ceph.com/issues/46083
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit ee69323cd27263cb7f9dd97dcbfb1c36f1cc0837)

Conflicts:
src/librbd/ObjectMap.cc (FunctionContext vs LambdaContext, on_finish vs ctx)
src/librbd/ObjectMap.cc
src/librbd/ObjectMap.h