Displaying 1 result from an estimated 1 matches for "osb_freeze_work".
2010 Jan 29
0
[PATCH 3/3] ocfs2:freeze-thaw: make it work -v2
...ocfs2_cluster_unlock(osb, lockres, level);
}
+/*
+ * This is only ever run on behalf of another node.
+ */
+void ocfs2_freeze_worker(struct work_struct *work)
+{
+ struct super_block *sb;
+ int ret, do_unlock = 0;
+ struct ocfs2_super *osb = container_of(work, struct ocfs2_super,
+ osb_freeze_work);
+
+ mlog(0, "flags=0x%lx, frozen=%d\n", osb->osb_flags, osb->sb->s_frozen);
+
+ /* If umount is in progress, wait it to complete. */
+ ret = ocfs2_test_osb_flag(osb, OCFS2_OSB_UMOUNT_INPROG);
+ if (ret) {
+ mlog(0, "Unmount in progress, make the freeze request pending\n&q...