diff options
| author | Kevin Wolf | 2016-04-19 17:27:24 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-05-25 19:04:21 +0200 |
| commit | 0c3169dffa68fcdc71ad42e9a60faa4778de0397 (patch) | |
| tree | 6d92e0809cc9efc94c6fd4b3fe015b7026a4656a /include/block | |
| parent | block: Cancel jobs first in bdrv_close_all() (diff) | |
| download | qemu-0c3169dffa68fcdc71ad42e9a60faa4778de0397.tar.gz qemu-0c3169dffa68fcdc71ad42e9a60faa4778de0397.tar.xz qemu-0c3169dffa68fcdc71ad42e9a60faa4778de0397.zip | |
block: Default to enabled write cache in blk_new()
The existing users of the function are:
1. blk_new_open(), which already enabled the write cache
2. Some test cases that don't care about the setting
3. blockdev_init() for empty drives, where the cache mode is overridden
with the value from the options when a medium is inserted
Therefore, this patch doesn't change the current behaviour. It will be
convenient, however, for additional users of blk_new() (like block
jobs) if the most sensible WCE setting is the default.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions
