On Wed, Aug 26, 2015 at 03:12:00PM -0700, Andrew Morton wrote: > From: Joseph Qi <joseph...@huawei.com> > Subject: ocfs2: fix race between crashed dio and rm > > There is a race case between crashed dio and rm, which will lead to > OCFS2_VALID_FL not set read-only. > > N1 N2 > ------------------------------------------------------------------------ > dd with direct flag > rm file > crashed with an dio entry left > in orphan dir > clear OCFS2_VALID_FL in > ocfs2_remove_inode > recover N1 and read the corrupted inode, > and set filesystem read-only > > So we skip the inode deletion this time and wait for dio entry > recovered first. > > Signed-off-by: Joseph Qi <joseph...@huawei.com> > Cc: Mark Fasheh <mfas...@suse.com> > Cc: Joel Becker <jl...@evilplan.org> > Signed-off-by: Andrew Morton <a...@linux-foundation.org>
Reviewed-by: Mark Fasheh <mfas...@suse.de> -- Mark Fasheh _______________________________________________ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com https://oss.oracle.com/mailman/listinfo/ocfs2-devel