diff options
author | 2015-09-04 15:44:40 -0700 | |
---|---|---|
committer | 2015-09-04 16:54:41 -0700 | |
commit | ad694821224634d46b6571f0161e85ac2e397396 (patch) | |
tree | 0aba23e4b8889402d1d1c1e96a62e790574c96ec /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ocfs2: avoid access invalid address when read o2dlm debug messages (diff) | |
download | linux-dev-ad694821224634d46b6571f0161e85ac2e397396.tar.xz linux-dev-ad694821224634d46b6571f0161e85ac2e397396.zip |
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.qi@huawei.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions