]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/ObjectCacher: overwrite might cause stray read request callbacks 37813/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 21 Sep 2020 16:53:37 +0000 (12:53 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 26 Oct 2020 20:30:29 +0000 (21:30 +0100)
commitba0afa5d2e4817ffbe3c61eacad0678c22740d5b
tree9b82b1bb7cca0b8937c8eafd6401218320623674
parenta2010cbc82ce53c909c3d230726d633f552e43a1
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