From b36985754f67c3df89c42ed29250abf6dfaf7890 Mon Sep 17 00:00:00 2001
From: Wu Guanghao <wuguanghao3@huawei.com>
Date: Sat, 4 Jun 2022 03:06:52 +0400
Subject: [PATCH] use sync io read bcache by defaults

Currently lvm2 uses aio to read bcache by default,
but aio is created successfully but read fails,
resulting in lv creation failure. So use sync io
read bcache by default.

Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
---
 lib/config/defaults.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/config/defaults.h b/lib/config/defaults.h
index faf628f..d039cc7 100644
--- a/lib/config/defaults.h
+++ b/lib/config/defaults.h
@@ -70,7 +70,7 @@
 #define DEFAULT_METADATA_READ_ONLY 0
 #define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
 #define DEFAULT_UNKNOWN_DEVICE_NAME "[unknown]"
-#define DEFAULT_USE_AIO 1
+#define DEFAULT_USE_AIO 0
 
 #define DEFAULT_SANLOCK_LV_EXTEND_MB 256
 
-- 
2.33.0

