diff --git a/kernel/src/fs/vfs/path/mount.rs b/kernel/src/fs/vfs/path/mount.rs index f36e086ef..3e2bb3a53 100644 --- a/kernel/src/fs/vfs/path/mount.rs +++ b/kernel/src/fs/vfs/path/mount.rs @@ -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)?; }