From 5ed64b246a4ca2d469baf26475faae6a893cdc32 Mon Sep 17 00:00:00 2001 From: Masaya Takahashi Date: Mon, 6 Feb 2023 19:43:52 +0900 Subject: [PATCH] MetadataCrypt: extend timeout for low performance device Some devices isolate CPUs under low battery. It causes low performance and 5 sec timeout is soemtimes too short for dm device ready. Bug: 267989884 Change-Id: I52e1140b961ac42401a409e3264a5facc0f60cc4 Signed-off-by: Masaya Takahashi --- MetadataCrypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MetadataCrypt.cpp b/MetadataCrypt.cpp index a0f7b8b..0c32c3b 100644 --- a/MetadataCrypt.cpp +++ b/MetadataCrypt.cpp @@ -194,7 +194,7 @@ static bool create_crypto_blk_dev(const std::string& dm_name, const std::string& LOG(ERROR) << "Failed to populate default-key device " << dm_name; return false; } - if (!dm.WaitForDevice(dm_name, 5s, crypto_blkdev)) { + if (!dm.WaitForDevice(dm_name, 20s, crypto_blkdev)) { LOG(ERROR) << "Failed to wait for default-key device " << dm_name; return false; }