Remove redundant REMOUNT_LOCK

This commit is contained in:
Junrui Luo 2026-07-02 12:17:36 +08:00 committed by Chengjun Chen
parent b577872004
commit 6eeea918b4
1 changed files with 0 additions and 6 deletions

View File

@ -562,12 +562,6 @@ impl Mount {
ctx: &Context,
_topology: &mut MountTopology,
) -> Result<()> {
// TODO: This lock is a workaround to guarantee the atomicity of remount operation.
// We need to re-design the lock mechanism of `Mount` and file system in the future.
static REMOUNT_LOCK: Mutex<()> = Mutex::new(());
let _guard = REMOUNT_LOCK.lock();
if let Some(flags) = fs_flags {
self.fs.set_fs_flags(flags, data, ctx)?;
}