From 052a3d3a4f46c5cc83a340b7db4db4ee49bb3d65 Mon Sep 17 00:00:00 2001 From: tiann Date: Tue, 2 May 2023 00:12:01 +0800 Subject: [PATCH] kernel: umount by lazy --- kernel/core_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/core_hook.c b/kernel/core_hook.c index 0f8f0280..8abcfe76 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -385,7 +385,7 @@ static void try_umount(const char *mnt) } #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0) - err = path_umount(&path, 0); + err = path_umount(&path, MNT_DETACH); if (err) { pr_info("umount %s failed: %d\n", mnt, err); }