diff mbox

[v7,19/20] block: Turn on image locking by default

Message ID 1470662013-19785-20-git-send-email-famz@redhat.com
State New
Headers show

Commit Message

Fam Zheng Aug. 8, 2016, 1:13 p.m. UTC
Now that test cases are covered, we can turn it on.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/block.c b/block.c
index 55a393f..ee9f3dc 100644
--- a/block.c
+++ b/block.c
@@ -992,7 +992,7 @@  static int bdrv_open_common(BlockDriverState *bs, BdrvChild *file,
         goto fail_opts;
     }
 
-    lock_mode = qemu_opt_get(opts, BDRV_OPT_LOCK_MODE) ? : "off";
+    lock_mode = qemu_opt_get(opts, BDRV_OPT_LOCK_MODE) ? : "auto";
     if (!strcmp(lock_mode, "auto")) {
         /* Default */
     } else if (!strcmp(lock_mode, "shared")) {