summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/sync-interval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/sync-interval.c b/libdiskfs/sync-interval.c
index da7fba81..0c51a27b 100644
--- a/libdiskfs/sync-interval.c
+++ b/libdiskfs/sync-interval.c
@@ -97,8 +97,10 @@ periodic_sync (int interval)
return;
}
+ rwlock_reader_lock (&diskfs_fsys_lock);
diskfs_sync_everything (0);
diskfs_set_hypermetadata (0, 0);
+ rwlock_reader_unlock (&diskfs_fsys_lock);
ports_end_rpc (pi, &link);