Bug 526869 - Add virtio_blk support cache flush (VIRTIO_BLK_F_FLUSH)
Add virtio_blk support cache flush (VIRTIO_BLK_F_FLUSH)
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
All Linux
high Severity medium
: ---
: ---
Assigned To: Justin M. Forbes
Fedora Extras Quality Assurance
:
Depends On:
Blocks: F12VirtTarget
  Show dependency treegraph
 
Reported: 2009-10-02 04:23 EDT by Mark McLoughlin
Modified: 2009-10-06 10:45 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-10-06 10:45:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Mark McLoughlin 2009-10-02 04:23:07 EDT
See discussion in bug #525890

We should backport:

  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f1b0ef0626

  virtio_blk: add support for cache flush

  Recent qemu has added a VIRTIO_BLK_F_FLUSH flag to advertise that the
  virtual disk has a volatile write cache that needs to be flushed.  In case
  we see this feature implement tell the Linux block layer about the fact
  and use the new VIRTIO_BLK_T_FLUSH to flush the cache when required.  This
  allows for an correct and simple implementation of write barriers.

This mail from Christoph is a good writeup on the background:

  http://www.mail-archive.com/kvm@vger.kernel.org/msg21559.html

We should get this into F-12 GA even if qemu doesn't yet support it in F-12 so that F-12 guest installer kernels have this feature.
Comment 1 Justin M. Forbes 2009-10-06 10:45:45 EDT
This has been added to the F-12 kernel and should be available in the next kernel tagged.

Note You need to log in before you can comment on or make changes to this bug.