]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: discard from cache after committed to disk 20682/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 5 Mar 2018 16:16:00 +0000 (11:16 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 7 Mar 2018 17:45:42 +0000 (12:45 -0500)
commit4e59ea9568ca27e14f2b6e461958c57f027964a1
treeac45c64ad5b59636c1b15819e6d43e8206c0f199
parent475f0fd9ef79c518372c7fd51a10a5551f6be232
librbd: discard from cache after committed to disk

This prevents a possible race condition with readahead racing with a
discard and re-populating the cache with non-zeroed data.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/cache/ObjectCacherObjectDispatch.cc