Displaying 1 result from an estimated 1 matches for "ocfs2_osb_umount_inprog".
2010 Jan 29
0
[PATCH 3/3] ocfs2:freeze-thaw: make it work -v2
..., 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");
+ /* Leave FREEZE_INPROG there so not queue the worker again */
+ return;
+ }
+
+ sb = freeze_bdev(osb->sb->s_bdev);
+ if (IS_ERR(sb)) {
+ /* ocfs2_freeze_fs() shouldn't return any error in t...