]> Git Repo - qemu.git/commit
block: Default to enabled write cache in blk_new()
authorKevin Wolf <[email protected]>
Tue, 19 Apr 2016 15:27:24 +0000 (17:27 +0200)
committerKevin Wolf <[email protected]>
Wed, 25 May 2016 17:04:21 +0000 (19:04 +0200)
commit0c3169dffa68fcdc71ad42e9a60faa4778de0397
tree6d92e0809cc9efc94c6fd4b3fe015b7026a4656a
parenta1a2af075647bb61e1435ce4c78d99e3f36d928b
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 <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Reviewed-by: Alberto Garcia <[email protected]>
block/block-backend.c
This page took 0.02612 seconds and 4 git commands to generate.