Project

General

Profile

Actions

Feature #3817

closed

librbd: make cache write-through until a flush is encountered

Added by Josh Durgin over 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Writeback caching is unsafe if higher layers don't send flushes. qemu can be accidentally misconfigured to not send flushes pretty easily, so staying write-through until we have evidence of flushes being sent is conservative but safe.

There should be an option to disable this behavior if people know they don't care about the data, and e.g. want to use qemu's cache=unsafe option.

Actions

Also available in: Atom PDF