Skip to content
Snippets Groups Projects
Commit 86fd1c16 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

virtio-blk: add cache flush support

parent 8062bae4
No related branches found
No related tags found
No related merge requests found
...@@ -217,6 +217,9 @@ int virtio_blk::make_virtio_request(struct bio* bio) ...@@ -217,6 +217,9 @@ int virtio_blk::make_virtio_request(struct bio* bio)
} }
type = VIRTIO_BLK_T_OUT; type = VIRTIO_BLK_T_OUT;
break; break;
case BIO_FLUSH:
type = VIRTIO_BLK_T_FLUSH;
break;
default: default:
return ENOTBLK; return ENOTBLK;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment