Skip to content

Commit

Permalink
Revert 67667b6 (#500)
Browse files Browse the repository at this point in the history
确实会导致卡住问题,一旦卡住,其他程序就无法正确卸载。
可能是,卸载目录那里一直在等待前面的空闲后再卸载,然后把后面的事件全部阻塞了?
  • Loading branch information
naicfeng authored May 15, 2023
1 parent f25dbd8 commit 2716ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/core_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static void try_umount(const char *mnt)
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
err = path_umount(&path, MNT_DETACH);
err = path_umount(&path, 0);
if (err) {
pr_info("umount %s failed: %d\n", mnt, err);
}
Expand Down

0 comments on commit 2716ec5

Please sign in to comment.