search for: ocfs2_osb_umount_start

Displaying 1 result from an estimated 1 matches for "ocfs2_osb_umount_start".

2010 Aug 20
0
[PATCH] ocfs2: Don't delete orphaned files if we are in the process of umount.
...mount to livelock(umount has to flush ocfs2_wq which will wait until orphan scan to finish). So this patch just try to finish the orphan scan quickly. In general when umount starts, we will set a flag(Jan has added one named OCFS2_OSB_DROP_DENTRY_LOCK_IMMED which is set in kill_sb, I renamed it to OCFS2_OSB_UMOUNT_START so that we all can use it), and when ocfs2_evict_inode finds this flag, it will skip the process of ocfs2_delete_inode if the file is from orphan dir. We are safe to skip the delete process since it is in orphan dir, so it will be deleted eventually by other orphan scan, next mount or fsck. Signed...