]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/ObjectCacher: overwrite might cause stray read request callbacks
authorJason Dillaman <dillaman@redhat.com>
Mon, 21 Sep 2020 16:53:37 +0000 (12:53 -0400)
committerVicente Cheng <freeze.bilsted@gmail.com>
Thu, 15 Oct 2020 08:45:50 +0000 (08:45 +0000)
commit186d26c3e8b2573ed7fb00dabe473beee82f19cf
tree1c73d18c3f2efeabff1f22eed25f47477a27514f
parent2f33da11da69822d9bab6e9cadb58a7cc3d5720f
osdc/ObjectCacher: overwrite might cause stray read request callbacks

In librbd, if readahead is active, there might be a pending read request
for the cache which is then (partially) overwritten by a write request.
This overwrite will cause bh splits and merges which can cause the
bh read callback to fail to invoke the pending read callbacks.

Fixes: https://tracker.ceph.com/issues/46822
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 94d43165ed7319d163640f38d154f8f80408eb14)
src/osdc/ObjectCacher.cc