engines/rbd: issue initial flush to enable writeback/around mode
authorJason Dillaman <dillaman@redhat.com>
Wed, 2 Dec 2020 19:03:42 +0000 (14:03 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 2 Dec 2020 19:06:11 +0000 (14:06 -0500)
commit8e4e151fe1f7e2548c4de268e085634696db4cb1
treea4c954aa4055994c717b09ed76576bfa79246cca
parentee584d9605abbf3c86e7ef7a17ebdd06147af6bb
engines/rbd: issue initial flush to enable writeback/around mode

By default librbd will use a writethrough cache until it receives
the first flush. Send a no-op flush after opening the image to
ensure writearound (default) or writeback cache modes can be
properly enabled (unlesss direct=1).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
engines/rbd.c