]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: keep access/modified timestamp updates out of IO path 25883/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 9 Jan 2019 19:46:49 +0000 (14:46 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 10 Jan 2019 15:00:20 +0000 (10:00 -0500)
commit5f3cb951c50e6d5da140605b9e4208d1126a1dfb
tree3bded2ca0676d16b2030bac3f7908368a84bf45a
parentd0af9eaa7367a2c5a3b64e5a211fd9eb270505eb
librbd: keep access/modified timestamp updates out of IO path

If the cache is enabled, it was possible for the timestamp updates
to cause race conditions with librbd clients (e.g. rbd export)
that had data corrupting effects since callbacks were expected to
be serialized.

Fixes: http://tracker.ceph.com/issues/37745
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/io/ImageRequest.cc
src/librbd/io/ImageRequest.h
src/test/librbd/io/test_mock_ImageRequest.cc