Remove redundant REMOUNT_LOCK
This commit is contained in:
parent
b577872004
commit
6eeea918b4
|
|
@ -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)?;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue